pub unsafe extern "system" fn JsCreateTypedArray(
arrayType: JsTypedArrayType,
baseArray: JsValueRef,
byteOffset: c_uint,
elementLength: c_uint,
result: *mut JsValueRef
) -> JsErrorCode
Creates a Javascript typed array object.
The baseArray can be an ArrayBuffer, another typed array, or a JavaScript
Array. The returned typed array will use the baseArray if it is an ArrayBuffer, or
otherwise create and use a copy of the underlying source array.
Requires an active script context.
The type of the array to create.
The base array of the new array. Use JS_INVALID_REFERENCE if no base array.
The offset in bytes from the start of baseArray (ArrayBuffer) for result typed array to reference.
Only applicable when baseArray is an ArrayBuffer object. Must be 0 otherwise.
The number of elements in the array. Only applicable when creating a new typed array without
baseArray (baseArray is JS_INVALID_REFERENCE) or when baseArray is an ArrayBuffer object.
Must be 0 otherwise.
The new typed array object.
The code JsNoError if the operation succeeded, a failure code otherwise.