JSObjectGetTypedArrayBuffer

Function JSObjectGetTypedArrayBuffer 

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

Returns the JavaScript Array Buffer object that is used as the backing of a JavaScript Typed Array object.

Parameter ctx: The execution context to use.

Parameter object: The JSObjectRef whose Typed Array type data pointer to obtain.

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: A JSObjectRef with a JSTypedArrayType of kJSTypedArrayTypeArrayBuffer or NULL if object is not a Typed Array.

ยงSafety

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