jsNewTypedArray top-level property

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

JSValue *jsNewTypedArray(JSContext *ctx, const uint8_t *buf, size_t len, int32_t type)

Implementation

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