(view)
| 110 | } |
| 111 | |
| 112 | function cloneAsUint8Array(view) { |
| 113 | const buffer = ArrayBufferViewGetBuffer(view); |
| 114 | const byteOffset = ArrayBufferViewGetByteOffset(view); |
| 115 | const byteLength = ArrayBufferViewGetByteLength(view); |
| 116 | return new Uint8Array( |
| 117 | ArrayBufferPrototypeSlice(buffer, byteOffset, byteOffset + byteLength), |
| 118 | ); |
| 119 | } |
| 120 | |
| 121 | function canCopyArrayBuffer(toBuffer, toIndex, fromBuffer, fromIndex, count) { |
| 122 | return toBuffer !== fromBuffer && |
no test coverage detected