JSObjectGetTypedArrayByteLength top-level property
int Function(JSContextRef ctx, JSObjectRef object, Pointer<JSValueRef> exception)
JSObjectGetTypedArrayByteLength
final
Returns the byte length of a JavaScript Typed Array object.
ctx
(JSContextRef) The execution context to use.
object
(JSObjectRef) The Typed Array object whose byte length 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 byte length of the Typed Array object or 0 if the object is not a Typed Array object.
Implementation
final int Function(
JSContextRef ctx,
JSObjectRef object,
Pointer<JSValueRef> exception,
)
JSObjectGetTypedArrayByteLength =
kLookup<
NativeFunction<
Uint32 Function(JSContextRef, JSObjectRef, Pointer<JSValueRef>)
>
>('JSObjectGetTypedArrayByteLength').asFunction();