Skip to content

Arch

FMT_BIG_ENDIAN = {1: 'B', 2: '>H', 4: '>I', 8: '>Q'} module-attribute

FMT_LITTLE_ENDIAN = {1: 'B', 2: '<H', 4: '<I', 8: '<Q'} module-attribute

Arch

native_endian = str(sys.byteorder) instance-attribute

__init__(arch_name, ptrsize, endian)

pack(integer)

pack_size(integer, size)

unpack(data)

unpack_size(data, size)

update(arch_name, ptrsize, endian)