Regular API function

simUnpackInt32Table

Description Unpacks a string (or part of it) into a table of int32 numbers. See also simPackInt32Table and the other packing/unpacking functions.
C synopsis -
C parameters
-
C return value
-
Lua synopsis table int32Numbers=simUnpackInt32Table(string data,number startInt32Index=0,number int32Count=0,number additionalByteOffset=0)
Lua parameters
data: a string (values between 0 and 255) that contains packed int32 numbers
startInt32Index: the zero-based index from which on data should be unpacked (from data[4*startInt32Index+1+additionalByteOffset]). Can be omitted in which case 0 is used
int32Count: the amount of int32s that should be unpacked. Can be omitted in which case 0 is used (which indicates that the maximum of int32s should be unpacked from the indicated startInt32Index)
additionalByteOffset: a byte offset that will be added before reading the int32s. Can be omitted, in which case 0 is used.
Lua return values
int32Numbers: a table containing unpacked int32 numbers if operation was successful, nil otherwise

All regular API functions on one page