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

Function fillArray

docs/app/js/sanddance-app.js:66054–66068  ·  view source on GitHub ↗
(_ref)

Source from the content-addressed store, hash-verified

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;
66057 var total = count * length;
66058 var copied = 0;
66059 for(var i = start; copied < length; copied++)target[i++] = source[copied];
66060 while(copied < total)if (copied < total - copied) {
66061 target.copyWithin(start + copied, start, start + copied);
66062 copied *= 2;
66063 } else {
66064 target.copyWithin(start + copied, start, start + total - copied);
66065 copied = total;
66066 }
66067 return target;
66068}
66069
66070},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"hktpI":[function(require,module,exports) {
66071var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected