Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/computer
/ decode
Function
decode
packages/computer/src/tools/ai.test.ts:37–39 ·
view source on GitHub ↗
(data: Uint8Array)
Source
from the content-addressed store, hash-verified
35
}
36
37
function
decode(data: Uint8Array): string {
38
return
new
TextDecoder().decode(data);
39
}
40
41
async
function
drainChunks(chunks: AsyncIterable<Uint8Array>): Promise<Uint8Array> {
42
const
parts: Uint8Array[] = [];
Callers
1
onWrite
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected