Expand description
Hexadecimal encoding of raw byte fields.
Wire formats across this workspace render opaque byte fields as hex text —
an HLS #EXT-X-KEY:KEYID=0x… attribute, an SDP fmtp codec-config
parameter, a Smooth Streaming QualityLevel@CodecPrivateData. The encoder
is identical in every one of them, so it lives here rather than being
recopied per crate.
Only the encoder is shared. Decoding needs an error type, and each consumer’s is its own (and their input-validation policies genuinely differ — e.g. a manifest parser caps input length where a local helper does not), so decoders stay with their callers.
Functions§
- hex_
encode - Hex-encode
dataas lowercase ASCII (two characters per byte).