Skip to main content

decode_hex

Function decode_hex 

Source
pub fn decode_hex(value: &str, bytes: usize) -> Result<Vec<u8>, String>
Expand description

Decode a fixed-width hexadecimal wire field.

ยงErrors

Returns an error unless the input contains exactly bytes hexadecimal bytes.