pub unsafe extern "C" fn ArrayBufferCopyData(
    cx: *mut JSContext,
    toBlock: Handle<*mut JSObject>,
    toIndex: usize,
    fromBlock: Handle<*mut JSObject>,
    fromIndex: usize,
    count: usize
) -> bool
Expand description

Copy data from one array buffer to another.

Both fromBuffer and toBuffer must be (possibly wrapped) ArrayBufferObjectMaybeShared.

This method may throw if the sizes don’t match, or if unwrapping fails.

The API for this is modelled on CopyDataBlockBytes from the spec: https://tc39.es/ecma262/#sec-copydatablockbytes