Regular API function


Description Unpacks a buffer into a table. See also simPackTable, 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=simUnpackTable(string buffer)
Lua parameters
buffer: a string buffer.
Lua return values
aTable: a script table.

All regular API functions on one page