Regular API function

simUnpackInt32Table / sim.unpackInt32Table

Description Unpacks a string (or part of it) into a table of int32 numbers. See also sim.packInt32Table and the other packing/unpacking functions.
C/C++
synopsis
C/C++
parameters
C/C++
return value
Lua
synopsis
int[] int32Numbers=sim.unpackInt32Table(buffer data,int startInt32Index=0,int int32Count=0,int 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
Python
synopsis
list int32Numbers=sim.unpackInt32Table(bytes data,int startInt32Index=0,int int32Count=0,int additionalByteOffset=0)

<