Regular API function

simPackUInt16Table

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

All regular API functions on one page