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

Function hex

packages/rpc/src/sync-driver.ts:33–37  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

31import type { SyncRPC } from "./interface.js";
32
33function hex(bytes: Uint8Array): string {
34 let s = "";
35 for (let i = 0; i < bytes.byteLength; i++) s += bytes[i].toString(16).padStart(2, "0");
36 return s;
37}
38
39// Best-effort dispose of a capnweb result envelope. Real envelopes
40// expose [Symbol.dispose]; the test fakes return plain objects, so

Callers 2

pullOnceImplFunction · 0.70
pushOnceFunction · 0.70

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected