jSObjectMakeTypedArrayWithArrayBuffer top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx, int arrayType, Pointer<NativeType> buffer, Pointer<Pointer<NativeType>> exception) jSObjectMakeTypedArrayWithArrayBuffer
final

Creates a JavaScript Typed Array object from an existing JavaScript Array Buffer object. ctx (JSContextRef) The execution context to use. arrayType (JSTypedArrayType) A value identifying the type of array to create. If arrayType is kJSTypedArrayTypeNone or kJSTypedArrayTypeArrayBuffer then NULL will be returned. buffer (JSObjectRef) An Array Buffer object that should be used as the backing store for the created JavaScript Typed Array object. exception (JSValueRef*) A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception. @result (JSObjectRef) A JSObjectRef that is a Typed Array or NULL if there was an error. The backing store of the Typed Array will be buffer.

Implementation

final Pointer Function(
    Pointer ctx,
    int arrayType,
    Pointer buffer,
    Pointer<Pointer>
        exception) jSObjectMakeTypedArrayWithArrayBuffer = JscFfi.lib
    .lookup<NativeFunction<Pointer Function(Pointer, Int8, Pointer, Pointer)>>(
        'JSObjectMakeTypedArrayWithArrayBuffer')
    .asFunction();