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

Function hex

packages/computer/src/workspace.test.ts:50–54  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

48 >();
49
50 function hex(bytes: Uint8Array): string {
51 let s = "";
52 for (let i = 0; i < bytes.byteLength; i++) s += bytes[i].toString(16).padStart(2, "0");
53 return s;
54 }
55
56 return {
57 async push(input) {

Callers 3

hasObjectsFunction · 0.70
startFunction · 0.70
pushObjectsFunction · 0.70

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected