mjolnir._asm.data

Home: https://github.com/asmagill/mjolnir_asm.data

Functions for data encoding and decoding data within Mjolnir. This module contains a variety of modules that were separated in Hydra, but seemed too small/somewhat related enough that combining them seemed reasonable.

This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis.

applekeys

mjolnir._asm.data.applekeys[...]

Array of symbols representing special keys in the mac environment, as per http://macbiblioblog.blogspot.com/2005/05/special-key-symbols.html.

hexdump

mjolnir._asm.data.hexdump(string [, count]) -> string

Treats the input string as a binary blob and returns a prettied up hex dump of it's contents. By default, a newline character is inserted after every 16 bytes, though this can be changed by also providing the optional count argument.

userdata_tostring

mjolnir._asm.data.userdata_tostring(userdata) -> string

Returns the userdata object as a binary string.

uuid

mjolnir._asm.data.uuid() -> string

Returns a newly generated UUID as a string