Regular API function

simPackUInt16Table / sim.packUInt16Table

Description Packs a table of uint16 numbers into a string. See also sim.unpackUInt16Table and the other packing/unpacking functions.
C/C++
synopsis
C/C++
parameters
C/C++
return value
Lua
synopsis
buffer data=sim.packUInt16Table(int[] uint16Numbers,int startUint16Index=0,int 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
Python
synopsis
bytes data=sim.packUInt16Table(list uint16Numbers,int startUint16Index=0,int uint16Count=0)