Skip to main content

decode_hex

Function decode_hex 

Source
pub fn decode_hex(text: &str) -> Result<Vec<u8>, Error>
Expand description

Decodes hexadecimal text into bytes.

Both uppercase and lowercase digits are accepted. Invalid input is reported as io::ErrorKind::InvalidData.