Regular API function

simPackUInt8Table / sim.packUInt8Table

Description Packs a table of uint8 numbers into a string. See also sim.unpackUInt8Table and the other packing/unpacking functions.
C/C++
synopsis
C/C++
parameters
C/C++
return value
Lua
synopsis
buffer data=sim.packUInt8Table(int[] uint8Numbers,int startUint8Index=0,int uint8count=0)
Lua
parameters
uint8Numbers: a table containing uint8 numbers. Invalid byte number will be packed in an undefined manner.
startUint8Index: the zero-based index from which on data should be packed. Can be omitted in which case 0 is used
uint8count: the amount of uint8s that should be packed. Can be omitted in which case 0 is used (which indicates that the maximum available uint8s should be packed from the indicated startUint8Index)
Lua
return values
data: a string (values between 0 and 255) that contains the uint8 numbers from the table
Python
synopsis
bytes data=sim.packUInt8Table(list uint8Numbers,int startUint8Index=0,int uint8count=0)

<