Skip to main content

unpack

Unpack little endian hexlified binary string into a list.

def unpack(
structure: string,
data: string
) - > list

Unpack little endian hexlified binary string into a list.

Parameters

NameTypeDescription
structurestringThe format string defining the layout of the binary data, which will be interpreted using little-endian byte order
datastringA hexlified string representing the binary data to be unpacked

Returns

TypeDescription
listA list of Python objects converted from the binary data according to the specified format structure