Initializes a fixed-size native control table with a specified stride and underlying typed array.
Determines the stride size
Typed array version
Used to initialize the fixed-size native array, capacity will expand if needed.
Defines how many elements each node holds.
Raw typed array that holds flattened data
The control table is created with a fixed size. This property tracks how many slots are currently used.
Adds a new slot to the table with the provided ID and full node data.
Unique identifier for the slot.
Object containing a value for every enum key.
Retrieves a specific value from a slot by its ID and enum key.
Slot ID to get
Enum key corresponding to the desired value.
The numeric value stored for that key in the slot, or undefined if the ID does not exist.
Checks whether a slot with the given ID currently exists in the table.
Slot ID.
true if the slot exists; otherwise false.
Modifies an existing slot identified by its ID with partial or complete data.
Slot ID to modify.
Object with at least one property defined
Updates a slot’s data when its table index (position) is already known. Useful for internal iteration or when the ID-to-position mapping is already available.
Index of the slot in the table.
Partial or full node data.
Removes the slot with the given ID from the table.
Slot ID to remove.
NativeControlTable class manages a fixed-size native array (as a control table) with an inferred numeric Enum structure. It uses a high-frequency access pattern, ideal for animation or real-time applications where direct memory access is critical for performance.
Example
Example