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 synopsis simInt simUnpackTable(simInt stackHandle,const simChar* buffer,simInt bufferSize)
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 return value
-1 in case of an error.
Lua synopsis table[] aTable=sim.unpackTable(string buffer)
Lua parameters
buffer: a string buffer.
Lua return values
aTable: a script table.