MCPcopy Create free account
hub / github.com/microsoft/SandDance / sliceArrayBuffer

Function sliceArrayBuffer

docs/app/js/sanddance-app.js:53904–53908  ·  view source on GitHub ↗
(arrayBuffer, byteOffset, byteLength)

Source from the content-addressed store, hash-verified

53902 return result.buffer;
53903}
53904function sliceArrayBuffer(arrayBuffer, byteOffset, byteLength) {
53905 var subArray = byteLength !== undefined ? new Uint8Array(arrayBuffer).subarray(byteOffset, byteOffset + byteLength) : new Uint8Array(arrayBuffer).subarray(byteOffset);
53906 var arrayCopy = new Uint8Array(subArray);
53907 return arrayCopy.buffer;
53908}
53909
53910},{"@babel/runtime/helpers/esm/typeof":"5go3u","../env-utils/assert":"9Ogn4","../node/buffer-utils.node":"3ye0p","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"3ye0p":[function(require,module,exports) {
53911"use strict";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected