run static method

void run(
  1. Uint8List tapeBytes
)

Implementation

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

  for (int i = 0; i < tapeBytes.length; i = i + 1) {
    view[i] = tapeBytes[i];
  }

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