pub unsafe extern "C" fn JSObjectMakeTypedArrayWithArrayBuffer(
ctx: JSContextRef,
arrayType: JSTypedArrayType,
buffer: JSObjectRef,
exception: *mut JSValueRef,
) -> JSObjectRefExpand description
Creates a JavaScript Typed Array object from an existing JavaScript Array Buffer object.
ctx: The execution context to use.arrayType: A value identifying the type of array to create. IfarrayTypeisJSTypedArrayType::NoneorJSTypedArrayType::ArrayBufferthenNULLwill be returned.buffer: An Array Buffer object that should be used as the backing store for the created JavaScript Typed Array object.exception: A pointer to aJSValueRefin which to store an exception, if any. PassNULLif you do not care to store an exception.
Returns a JSObjectRef that is a Typed Array or NULL if there
was an error. The backing store of the Typed Array will be buffer.