pub unsafe extern "C-unwind" fn JSObjectGetArrayBufferBytesPtr(
ctx: JSContextRef,
object: JSObjectRef,
exception: *mut JSValueRef,
) -> *mut c_void
Available on crate features
JSTypedArray
and JSBase
only.Expand description
Returns a pointer to the data buffer that serves as the backing store for a JavaScript Typed Array object.
Parameter object
: The Array Buffer object whose internal backing store pointer 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: A pointer to the raw data buffer that serves as object’s backing store or NULL if object is not an Array Buffer object.
The pointer returned by this function is temporary and is not guaranteed to remain valid across JavaScriptCore API calls.