JSObjectGetTypedArrayByteOffset

Function JSObjectGetTypedArrayByteOffset 

Source
pub unsafe extern "C-unwind" fn JSObjectGetTypedArrayByteOffset(
    ctx: JSContextRef,
    object: JSObjectRef,
    exception: *mut JSValueRef,
) -> usize
Available on crate features JSBase and JSTypedArray only.
Expand description

Returns the byte offset of a JavaScript Typed Array object.

Parameter ctx: The execution context to use.

Parameter object: The Typed Array object whose byte offset to return.

Parameter exception: A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.

Returns: The byte offset of the Typed Array object or 0 if the object is not a Typed Array object.

ยงSafety

  • ctx must be a valid pointer.
  • object must be a valid pointer.
  • exception must be a valid pointer.