Regular API function

simPackUInt8Table

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

All regular API functions on one page