MCPcopy
hub / github.com/freshframework/fresh / b64decode

Function b64decode

packages/fresh/src/jsonify/parse.ts:140–148  ·  view source on GitHub ↗
(b64: string)

Source from the content-addressed store, hash-verified

138}
139
140function b64decode(b64: string): Uint8Array {
141 const binString = atob(b64);
142 const size = binString.length;
143 const bytes = new Uint8Array(size);
144 for (let i = 0; i < size; i++) {
145 bytes[i] = binString.charCodeAt(i);
146 }
147 return bytes;
148}

Callers 1

unpackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected