MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getBase64Data

Function getBase64Data

project/emscripten/boxedwine-shell.js:325–333  ·  view source on GitHub ↗
(base64Data)

Source from the content-addressed store, hash-verified

323 return zipFiles;
324 }
325 function getBase64Data(base64Data) {
326 let bytes = atob(base64Data);
327 let contentLength = bytes.length;
328 var contents = new Uint8Array(contentLength);
329 for (var i = 0; i < contentLength; i++) {
330 contents[i] = bytes.charCodeAt(i);
331 }
332 return contents;
333 }
334 function loadFile(pathPrefix, filename, callback) {
335 fetch(pathPrefix + filename, { method: 'GET' }).then(function(response) {
336 if (response.status === 200) {

Callers 2

buildAppFileSystemFunction · 0.85
buildExtraFileSystemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected