pub unsafe extern "C" fn JSObjectMakeTypedArrayWithBytesNoCopy(
ctx: JSContextRef,
arrayType: JSTypedArrayType,
bytes: *mut c_void,
byteLength: usize,
bytesDeallocator: JSTypedArrayBytesDeallocator,
deallocatorContext: *mut c_void,
exception: *mut JSValueRef,
) -> JSObjectRefExpand description
Creates a JavaScript Typed Array object from an existing pointer.
ctx: The execution context to use.arrayType: A value identifying the type of array to create. IfarrayTypeisJSTypedArrayType::NoneorJSTypedArrayType::ArrayBufferthenNULLwill be returned.bytes: A pointer to the byte buffer to be used as the backing store of the Typed Array object.byteLength: The number of bytes pointed to by the parameter bytes.bytesDeallocator: The allocator to use to deallocate the external buffer when theJSTypedArrayDataobject is deallocated.deallocatorContext: A pointer to pass back to the deallocator.exception: A pointer to aJSValueRefin which to store an exception, if any. PassNULLif you do not care to store an exception.
Returns a JSObjectRef Typed Array whose backing store is the same as
the one pointed to by bytes or NULL if there was an error.
If an exception is thrown during this function the bytesDeallocator
will always be called.