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

Function arrayBufferToBase64

docs/tests/v3/es6/js/sanddance-test-es6.js:3176–3181  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

3174 return _getInitialDataUrl.apply(this, arguments);
3175}
3176function arrayBufferToBase64(buffer) {
3177 var binary = "";
3178 var bytes = new Uint8Array(buffer);
3179 for(var i = 0; i < bytes.byteLength; i++)binary += String.fromCharCode(bytes[i]);
3180 return btoa(binary);
3181}
3182
3183},{"@babel/runtime/regenerator":"eGRXL","@babel/runtime/helpers/esm/asyncToGenerator":"cPT1v","../../javascript-utils/is-type":"a5AOB","./resource-utils":"79vKg","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"a5AOB":[function(require,module,exports) {
3184var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

_getInitialDataUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected