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

Function arrayBufferToBase64

docs/app/js/sanddance-app.js:55245–55250  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

55243 return _getInitialDataUrl.apply(this, arguments);
55244}
55245function arrayBufferToBase64(buffer) {
55246 var binary = "";
55247 var bytes = new Uint8Array(buffer);
55248 for(var i = 0; i < bytes.byteLength; i++)binary += String.fromCharCode(bytes[i]);
55249 return btoa(binary);
55250}
55251
55252},{"@babel/runtime/regenerator":"hCi6z","@babel/runtime/helpers/esm/asyncToGenerator":"1U3uv","../../javascript-utils/is-type":"ceaCP","./resource-utils":"kOsIE","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"ceaCP":[function(require,module,exports) {
55253var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

_getInitialDataUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected