Name
GetMemPointer -- get raw address of memory block (V6.0)
Synopsis
ptr = GetMemPointer(id[, offset])
Function
This function returns the raw address of the memory block passed in id. Optionally, you can specify an offset in bytes that should be added to the address before returning it. The pointer will be returned as a variable of type #LIGHTUSERDATA. It will stay valid until you call FreeMem() on the memory block object.

This function is only useful in connection with functions which expect parameters of type #LIGHTUSERDATA. There are currently no Hollywood functions which can handle #LIGHTUSERDATA parameters but plugins might want to use #LIGHTUSERDATA parameters for certain tasks in case using tables is too slow.

Inputs
id
memory block whose address should be returned
offset
optional: offset in bytes to add to the address before returning it (defaults to 0)
Results
ptr
pointer to the raw data of the specified memory block

Show TOC