pub unsafe extern "C" fn ArrayBufferClone(
cx: *mut JSContext,
srcBuffer: Handle<*mut JSObject>,
srcByteOffset: usize,
srcLength: usize,
) -> *mut JSObject
Expand description
Copy data from one array buffer to another.
srcBuffer must be a (possibly wrapped) ArrayBufferObjectMaybeShared.
This method may throw if unwrapping or allocation fails.
The API for this is modelled on CloneArrayBuffer from the spec: https://tc39.es/ecma262/#sec-clonearraybuffer