Pointer object

The Pointer object defines a C pointer

Operation Description
Pointer call Calls the C function pointed by the Pointer
Pointer comparison Compares the Pointer for equality
Pointer indexing Get/set the memory content at the provided index
Pointer length operator Get the size of the Pointer in memory
Pointer math operations Permits Pointer calculations
Pointer string conversion Converts the Pointer to a Lua string
Property Description Access Type
Pointer.autorelease Controls wether the pointed memory is freed by the garbage collector readwrite boolean
Pointer.content Get/set the content of the pointed memory as a C Value readwrite
Pointer.isnull Checks if the Pointer is NULL readonly boolean
Pointer.size Get the Pointer size in memory readonly number
Pointer.type Get the internal Pointer type readonly string
Methods Description Return value
Pointer:as() Casts the Pointer to another Pointer type
Pointer:constructor() Pointer object constructor
Pointer:dec() Decrements the Pointer to a certain amount of bytes in memory