no message

This commit is contained in:
A1300399510
2024-01-03 10:32:21 +08:00
parent 5ad39c3e39
commit 42abde5285
987 changed files with 140612 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
import Uint8Array from './_Uint8Array.js';
/**
* Creates a clone of `arrayBuffer`.
*
* @private
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
* @returns {ArrayBuffer} Returns the cloned array buffer.
*/
function cloneArrayBuffer(arrayBuffer) {
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
return result;
}
export default cloneArrayBuffer;