MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / arrayToBase64

Function arrayToBase64

frontend/util/util.ts:46–48  ·  view source on GitHub ↗
(input: Uint8Array)

Source from the content-addressed store, hash-verified

44}
45
46function arrayToBase64(input: Uint8Array): string {
47 return base64.fromByteArray(input);
48}
49
50function base64ToArray(b64: string): Uint8Array<ArrayBufferLike> {
51 const cleanB64 = b64.replace(/\s+/g, "");

Callers 2

handleFileUploadFunction · 0.90
fileReadFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected