evaluateQuickjsByteCode function

void evaluateQuickjsByteCode(
  1. int contextId,
  2. Uint8List bytes
)

Implementation

void evaluateQuickjsByteCode(int contextId, Uint8List bytes) {
  if (KrakenController.getControllerOfJSContextId(contextId) == null) {
    return;
  }
  Pointer<Uint8> byteData = malloc.allocate(sizeOf<Uint8>() * bytes.length);
  byteData.asTypedList(bytes.length).setAll(0, bytes);
  _evaluateQuickjsByteCode(contextId, byteData, bytes.length);
  malloc.free(byteData);
}