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.Type

Inherits from Typename.

A named type with a byte size. Provides factory methods for creating derived reference, pointer, and array types.

Methods

self:size() / self:size(bytes: number)

Gets or sets the byte size of this type. Returns self when setting.

self:ref()

Creates or retrieves a Reference type wrapping this type (i.e. T&).

self:ptr()

Creates or retrieves a Pointer type pointing to this type (i.e. T*).

self:array()

Creates or retrieves an Array type for this element type.