pub unsafe extern "C-unwind" fn JSObjectGetTypedArrayBytesPtr(
ctx: JSContextRef,
object: JSObjectRef,
exception: *mut JSValueRef,
) -> *mut c_voidAvailable on crate features
JSBase and JSTypedArray only.Expand description
Returns a temporary pointer to the backing store of a JavaScript Typed Array object.
Parameter ctx: The execution context to use.
Parameter object: The Typed Array object whose 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 a Typed Array object.
The pointer returned by this function is temporary and is not guaranteed to remain valid across JavaScriptCore API calls.
§Safety
ctxmust be a valid pointer.objectmust be a valid pointer.exceptionmust be a valid pointer.