Regular API function

simUnpackBytes

Description Unpacks a string (or part of it) into a table of byte numbers. See also simPackBytes and the other packing/unpacking functions.
C synopsis -
C parameters
-
C return value
-
Lua synopsis table byteNumbers=simUnpackBytes(string data,number startByteIndex=0,number byteCount=0)
Lua parameters
data: a string (values between 0 and 255) that contains byte numbers
startByteIndex: the zero-based index from which on data should be unpacked (from data[startByteIndex]). Can be omitted in which case 0 is used.
byteCount: the amount of bytes that should be unpacked. Can be omitted in which case 0 is used (which indicates that the maximum of bytes should be unpacked from the indicated startByteIndex).
Lua return values
byteNumbers: a table containing byte numbers if operation was successful, nil otherwise

All regular API functions on one page