Skip to main content

decode_to_array

Function decode_to_array 

Source
pub fn decode_to_array<const N: usize>(src_hex: &[u8]) -> Result<[u8; N], Error>
Expand description

Decode exactly N bytes from a hex string of length 2*N.

Returns Error::OutputTooSmall if src_hex.len() / 2 != N.