MCPcopy Create free account
hub / github.com/ccxt/ccxt / encodeBase64

Function encodeBase64

ts/src/static_dependencies/ethers/utils/base64-browser.ts:18–25  ·  view source on GitHub ↗
(_data: BytesLike)

Source from the content-addressed store, hash-verified

16}
17
18export function encodeBase64(_data: BytesLike): string {
19 const data = getBytes(_data);
20 let textData = "";
21 for (let i = 0; i < data.length; i++) {
22 textData += String.fromCharCode(data[i]);
23 }
24 return btoa(textData);
25}

Callers

nothing calls this directly

Calls 1

getBytesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…