Skip to main content

decoded_len

Function decoded_len 

Source
pub fn decoded_len(hex_len: usize) -> Result<usize, Error>
Expand description

Returns the number of bytes produced from a hex string of hex_len bytes.

Returns Error::OddLength if hex_len is odd.

ยงExamples

assert_eq!(fast_hex_lite::decoded_len(8).unwrap(), 4);