MCPcopy Create free account
hub / github.com/cloudflare/computer / fromBase64

Function fromBase64

packages/computer/src/runtime/wire.ts:18–23  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

16}
17
18function fromBase64(text: string): Uint8Array {
19 const binary = atob(text);
20 const bytes = new Uint8Array(binary.length);
21 for (let index = 0; index < binary.length; index++) bytes[index] = binary.charCodeAt(index);
22 return bytes;
23}
24
25export function encodeRuntimeEvent(event: WorkspaceRuntimeEvent<ExecEncoding>): Uint8Array {
26 let frame: RuntimeFrame;

Callers 1

decodeFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected