simPackTable

Packs a table into a buffer. The table may contain other nested arrays, maps, None/nil, bool, number or string values. All other types (e.g. functions) will be considered as string or None/nil values. You can also use sim.packTable to quickly compare two tables or to perform a deep copy of a table

C++ synopsis

char* simPackTable(int stackHandle, int* bufferSize)

Arguments

  • stackHandle: stack handle obtained with simCreateStack. There must be a table located at the top of the stack.
  • bufferSize: size of the returned buffer.

Return

  • nullptr in case of an error, otherwise a data buffer. The user is in charge of releasing the returned buffer with simReleaseBuffer.


See also: