MCPcopy Index your code
hub / github.com/anomalyco/opencode / bytesToHex

Function bytesToHex

packages/app/src/utils/id.ts:61–67  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

59}
60
61function bytesToHex(bytes: Uint8Array): string {
62 let hex = ""
63 for (let i = 0; i < bytes.length; i += 1) {
64 hex += bytes[i].toString(16).padStart(2, "0")
65 }
66 return hex
67}
68
69function randomBase62(length: number): string {
70 const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected