Function decode_hex_prefix

Source
pub fn decode_hex_prefix(hex: impl AsRef<[u8]>) -> Option<(Vec<u8>, bool)>
Expand description

Decodes hex as normal hex string prefix. The output may have odd-length byte. Returns (bytes, has_odd_byte).