MCPcopy Create free account
hub / github.com/Effect-TS/effect / bytesToHex

Function bytesToHex

packages/effect/src/unstable/eventlog/EventLogSessionAuth.ts:246–252  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

244}
245
246const bytesToHex = (bytes: Uint8Array): string => {
247 let hex = ""
248 for (const byte of bytes) {
249 hex += byte.toString(16).padStart(2, "0")
250 }
251 return hex
252}
253
254const encodeRemoteIdField = (remoteId: string | Uint8Array): Uint8Array =>
255 typeof remoteId === "string"

Callers 1

encodeRemoteIdFieldFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected