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

Function hexEncodeUint8Array

packages/effect/src/Encoding.ts:746–753  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

744// Hex internals
745
746const hexEncodeUint8Array = (bytes: Uint8Array) => {
747 let result = ""
748 for (let i = 0; i < bytes.length; ++i) {
749 result += bytesToHex[bytes[i]]
750 }
751
752 return result
753}
754
755const fromHexChar = (byte: number) => {
756 if (48 <= byte && byte <= 57) {

Callers 1

encodeHexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected