Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

sdkgenny.Pointer

Inherits from Reference.

A pointer type (T*). Inherits the to() method from Reference and has no additional methods of its own.

Pointer types are typically created via the Type:ptr() factory method rather than directly.

local int_type = ns:type("int"):size(4)
local int_ptr = int_type:ptr() -- creates int*
print(int_ptr:to():name())     -- prints "int"