JSObjectGetArrayBufferByteLength top-level property
int Function(JSContextRef ctx, JSObjectRef object, Pointer<JSValueRef> 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(
JSContextRef ctx,
JSObjectRef object,
Pointer<JSValueRef> exception,
)
JSObjectGetArrayBufferByteLength =
kLookup<
NativeFunction<
Size Function(JSContextRef, JSObjectRef, Pointer<JSValueRef>)
>
>('JSObjectGetArrayBufferByteLength').asFunction();