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

Function getScratchArray

docs/tests/v2/es6/js/sanddance.js:13971–13974  ·  view source on GitHub ↗
(Type, length)

Source from the content-addressed store, hash-verified

13969}
13970
13971function getScratchArray(Type, length) {
13972 var scratchArrayBuffer = getScratchArrayBuffer(Type.BYTES_PER_ELEMENT * length);
13973 return new Type(scratchArrayBuffer, 0, length); // arrayBuffer, byteOffset, length (in elements)
13974} // Uses copyWithin to significantly speed up typed array value filling
13975
13976
13977function fillArray(_ref) {

Callers

nothing calls this directly

Calls 1

getScratchArrayBufferFunction · 0.70

Tested by

no test coverage detected