jSObjectGetArrayBufferBytesPtr top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx, Pointer<NativeType> object, Pointer<Pointer<NativeType>> exception) jSObjectGetArrayBufferBytesPtr
final

Returns a pointer to the data buffer that serves as the backing store for a JavaScript Typed Array object. The pointer returned by this function is temporary and is not guaranteed to remain valid across JavaScriptCore API calls. ctx (JSContextRef) object (JSObjectRef) The Array Buffer object whose internal backing store pointer to return. 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 (void*) A pointer to the raw data buffer that serves as object's backing store or NULL if object is not an Array Buffer object.

Implementation

final Pointer Function(Pointer ctx, Pointer object, Pointer<Pointer> exception)
    jSObjectGetArrayBufferBytesPtr = JscFfi.lib
        .lookup<NativeFunction<Pointer Function(Pointer, Pointer, Pointer)>>(
            'JSObjectGetArrayBufferBytesPtr')
        .asFunction();