Allocate retained planes and register element slots once.
contextOwning context.
elementsElements in slot order, all attached to this context.
capacityMaximum prefix length; defaults to the element count.
Input base value for ResolveNumeric, including percentage resolution.
Retained base-value plane.
Retained command capacity.
Maximum prefix length.
Number of completed operations from the last submit, including failures.
Completed prefix length.
Input registered element slot for each command.
Retained slot plane.
Input float32 number for set and resolution commands.
Retained numeric plane.
Input ElementCommandOpcode for each command.
Retained opcode plane.
Numeric outputs at the corresponding command indices.
Retained output plane; do not write while submitting.
ElementCommandStatus at each completed command index.
Retained output status plane.
Units of query outputs, PX for lengths, NUMBER for resolved numbers.
Retained output unit plane.
Input PropertyId for property commands; ignored by resolution commands.
Retained property selector plane.
Input single numeric Unit for set and resolution commands.
Retained unit plane.
Replace the registered element table; queued slots use the new table.
elementsElements in the same context, in slot order.
Grow retained capacity, preserving existing entries and old view bytes.
capacityRequested capacity; smaller requests do not shrink.
Validate and consume the prefix in one Native entry.
countPrefix length within capacity.
Completed command count; throws on failure.
Native-owned numeric command planes with a registered element slot table.
Remarks
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.