Regular API function

simPackInt32Table

Description Packs a table of int32 numbers into a string. See also simUnpackInt32Table and the other packing/unpacking functions.
C synopsis -
C parameters
-
C return value
-
Lua synopsis string data=simPackInt32Table(table int32Numbers,number startInt32Index=0,number int32Count=0)
Lua parameters
int32Numbers: a table containing int32 numbers. Non-numbers will be packed as zero values
startInt32Index: the zero-based index from which on data should be packed. Can be omitted in which case 0 is used
int32Count: the amount of int32s that should be packed. Can be omitted in which case 0 is used (which indicates that the maximum available int32s should be packed from the indicated startInt32Index)
Lua return values
data: a string (values between 0 and 255) that contains packed int32 numbers from the table if operation was successful, nil otherwise

All regular API functions on one page