jsNewArrayBufferCopy top-level property

Pointer<JSValue> Function(Pointer<JSContext> ctx, Pointer<Uint8> buf, int len) jsNewArrayBufferCopy
final

JSValue *jsNewArrayBufferCopy(JSContext *ctx, const uint8_t *buf, size_t len)

Implementation

final Pointer<JSValue> Function(
  Pointer<JSContext> ctx,
  Pointer<Uint8> buf,
  int len,
) jsNewArrayBufferCopy = _qjsLib
    .lookup<
        NativeFunction<
            Pointer<JSValue> Function(
              Pointer<JSContext>,
              Pointer<Uint8>,
              IntPtr,
            )>>('jsNewArrayBufferCopy')
    .asFunction();