API reference
Preparing search index…

ElementCommandBuffer

Native-owned numeric command planes with a registered element slot table.

Write the retained TypedArrays, then submit a prefix in one Native call. The entire prefix is validated and copied to retained Native scratch before execution. Queries observe preceding commands. Numeric inputs require a finite float32 and a single applicable Unit. Missing/non-numeric properties produce NaN and Unit.UNKNOWN with an explicit outputStatus. consumed counts only completed commands; prevalidation errors leave it zero. Runtime failures preserve the completed prefix and throw. The handle retains registered elements and context through GC-visible edges. Views retain bytes only, safely surviving collection, reserve and shutdown. Submission is permitted in data-view/event callbacks; value, parser, instancer and render callbacks cannot submit. Recursive use of the same buffer while consuming is rejected.

Source & inheritance
Member directory15

Constructors

Accessors

Methods

Constructors

Accessors

  • get bases(): Float32Array

    Input base value for ResolveNumeric, including percentage resolution.

    Returns

    Float32Array

    Retained base-value plane.

    Source & inheritance
  • get consumed(): number

    Number of completed operations from the last submit, including failures.

    Returns

    number

    Completed prefix length.

    Source & inheritance
  • get outputNumbers(): Float32Array

    Numeric outputs at the corresponding command indices.

    Returns

    Float32Array

    Retained output plane; do not write while submitting.

    Source & inheritance
  • get outputStatus(): Uint8Array

    ElementCommandStatus at each completed command index.

    Returns

    Uint8Array

    Retained output status plane.

    Source & inheritance
  • get outputUnits(): Int32Array

    Units of query outputs, PX for lengths, NUMBER for resolved numbers.

    Returns

    Int32Array

    Retained output unit plane.

    Source & inheritance
  • get properties(): Uint32Array

    Input PropertyId for property commands; ignored by resolution commands.

    Returns

    Uint32Array

    Retained property selector plane.

    Source & inheritance

Methods

  • Replace the registered element table; queued slots use the new table.

    Parameters

    elements
    readonly Element[]

    Elements in the same context, in slot order.

    Returns

    void
    Source & inheritance
  • Grow retained capacity, preserving existing entries and old view bytes.

    Parameters

    capacity
    number

    Requested capacity; smaller requests do not shrink.

    Returns

    void
    Source & inheritance
  • Validate and consume the prefix in one Native entry.

    Parameters

    count
    number

    Prefix length within capacity.

    Returns

    number

    Completed command count; throws on failure.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0