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

Function utf8

packages/computer/src/mounts/index.test.ts:29–31  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

27}
28
29function utf8(s: string): Uint8Array {
30 return new TextEncoder().encode(s);
31}
32
33async function sha256Hex(bytes: Uint8Array): Promise<string> {
34 // crypto.subtle.digest accepts an ArrayBuffer view; the cast keeps

Callers 2

index.test.tsFile · 0.70
materializeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected