Regular API function
simUnpackTable / sim.unpackTable
Description
Unpacks a buffer into a table. See also
sim.packTable
, the
other stack functions
and the
other packing/unpacking functions
.
C/C++
synopsis
simInt simUnpackTable(simInt stackHandle,const simChar* buffer,simInt bufferSize)
C/C++
parameters
stackHandle: a stack handle obtained with
simCreateStack
. The unpacked table will be pushed onto the stack.
buffer: the packed table (buffer).
bufferSize: the size of the buffer.
C/C++
return value
-1 in case of an error.
Lua
synopsis
any[]/map aTable=sim.unpackTable(buffer buffer)
Lua
parameters
buffer: a string buffer.
Lua
return values
aTable: a script table.
Python
synopsis
list/dict aTable=sim.unpackTable(bytes buffer)