Regular API function

simPackBytes

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

All regular API functions on one page