Pointer object

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