TableToMem(t, id, type[, table])
id. The third parameter specifies
the data type of the elements that should be written to the memory block.
This can be either #BYTE (1 byte), #SHORT (2 bytes), #INTEGER (4 bytes),
#FLOAT (4 bytes), or #DOUBLE (8 bytes).
The optional table argument can be used to set additional parameters for
the operation. The following table fields are currently recognized:
Offset:TableToMem() should start to write elements.
Defaults to 0 which means start writing at the beginning of the memory block.
EndianSwitch:True, TableToMem() will switch byte order for all
multi-byte data types when writing them to the memory block. This can be useful
if you need to convert between big and little endian values. Defaults to False.
If there are more elements in the table than the memory block can store, this function will issue an error.
To convert a memory block back into a table, use the MemToTable() function. See MemToTable for details.