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

Function bytes

packages/computer/src/tools/ai.test.ts:33–35  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

31}
32
33function bytes(text: string): Uint8Array {
34 return new TextEncoder().encode(text);
35}
36
37function decode(data: Uint8Array): string {
38 return new TextDecoder().decode(data);

Callers 5

statFunction · 0.70
readAllFunction · 0.70
readChunksFunction · 0.70
ai.test.tsFile · 0.70
startFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected