Notes
- LuaRT keeps track of the type of data the Pointer points to.
- This internal tracking is used for the Pointer.content property.
- Casting this Pointer to another Pointer type is possible using the Pointer.as() method.
Pointer.type readonly
The Pointer.type property gets the type of the data that the Pointer points to.
Example
local c = require "c"
-- create a C Pointer that points to a C string
local pstr = c.Pointer(c.string("LuaRT"))
-- prints the Pointer type
print("C Pointer type : "..pstr.type)
print("C Pointer content is : "..pstr.content)