MCPcopy Create free account
hub / github.com/Cicada000/VV / _arrayBufferToBase64

Function _arrayBufferToBase64

Web/script.js:259–265  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

257 },
258
259 _arrayBufferToBase64(buffer) {
260 const binary = [];
261 const bytes = new Uint8Array(buffer);
262 for (let i = 0; i < bytes.byteLength; i++)
263 binary.push(String.fromCharCode(bytes[i]));
264 return btoa(binary.join(""));
265 },
266
267 _base64ToArrayBuffer(base64) {
268 const binaryString = atob(base64);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected