Skip to main content

decode

Function decode 

Source
pub fn decode(data: impl AsRef<[u8]>) -> Result<Vec<u8>, DecodeError>
Expand description

Decodes a hexadecimal string into bytes.

ยงErrors

Returns DecodeError if the input length is odd or contains non-hex characters.