jSObjectGetArrayBufferByteLength top-level property

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

Returns the number of bytes in a JavaScript data object. ctx (JSContextRef) The execution context to use. object (JSObjectRef) The JS Arary Buffer object whose length in bytes 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 (size_t) The number of bytes stored in the data object.

Implementation

final int Function(Pointer ctx, Pointer object, Pointer<Pointer> exception)
    jSObjectGetArrayBufferByteLength = JscFfi.lib
        .lookup<NativeFunction<Uint32 Function(Pointer, Pointer, Pointer)>>(
            'JSObjectGetArrayBufferByteLength')
        .asFunction();