run static method

void run(
  1. Uint8List tapeBytes
)

Passes a compiled CommandBuffer tape to the native engine and executes it. Bytes are copied into memory before dispatch.

Implementation

static void run(Uint8List tapeBytes) {
  using((Arena arena) {
    Pointer<Uint8> nTape = arena<Uint8>(tapeBytes.length);
    Uint8List view = nTape.asTypedList(tapeBytes.length);

    // Fast path memory copy (C-optimized) instead of manual loop
    view.setAll(0, tapeBytes);

    _run(handle, nTape, tapeBytes.length);
  });
}