ptr = GetMemPointer(id[, offset])
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.