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

Function getScratchArray

docs/app/js/sanddance-app.js:66050–66053  ·  view source on GitHub ↗
(Type, length)

Source from the content-addressed store, hash-verified

66048 return arrayBuffer;
66049}
66050function getScratchArray(Type, length) {
66051 var scratchArrayBuffer = getScratchArrayBuffer(Type.BYTES_PER_ELEMENT * length);
66052 return new Type(scratchArrayBuffer, 0, length);
66053}
66054function fillArray(_ref) {
66055 var target = _ref.target, source = _ref.source, _ref$start = _ref.start, start = _ref$start === void 0 ? 0 : _ref$start, _ref$count = _ref.count, count = _ref$count === void 0 ? 1 : _ref$count;
66056 var length = source.length;

Callers

nothing calls this directly

Calls 1

getScratchArrayBufferFunction · 0.70

Tested by

no test coverage detected