Expand description
§qos_hex
Utilities for encoding and decoding hex strings in QuorumOS crates.
Use encode and encode_to_vec to produce lowercase hex, and decode, decode_to_buf, decode_from_vec, or FromHex to decode hex into byte buffers, arrays, or vectors.
Enable the serde feature for #[serde(with = "qos_hex::serde")] helpers, including optional hex-encoded fields through qos_hex::serde::option.
Enums§
- HexError
- Error type for decoding hex strings.
Traits§
- FromHex
- Types that can be decoded from a hex string.
Functions§
- decode
- Decode bytes from a hex encoded string.
- decode_
from_ vec - Decode bytes from a hex byte slice.
- decode_
to_ buf - Decode
raw_sinto a mutable buffer slice. Length ofbufmust exactly match the length of the bytes represented byraw_s. - encode
- Encode a byte slice to hex string. Always encodes with lowercase characters.
- encode_
to_ vec - Encode a byte slice to a hex-encoded byte slice.