MCPcopy Index your code
hub / github.com/Effect-TS/effect / bytesFieldFromHex

Function bytesFieldFromHex

packages/opentelemetry/src/internal/protobuf.ts:179–180  ·  view source on GitHub ↗
(fieldNumber: number, hex: string)

Source from the content-addressed store, hash-verified

177 * Encodes a bytes field from hex string
178 */
179export const bytesFieldFromHex = (fieldNumber: number, hex: string): Uint8Array =>
180 lengthDelimitedField(fieldNumber, encodeHexBytes(hex))
181
182/**
183 * Encodes an embedded message field

Callers

nothing calls this directly

Calls 2

lengthDelimitedFieldFunction · 0.85
encodeHexBytesFunction · 0.85

Tested by

no test coverage detected