pub fn hex_to_bytes(i: &[u8], o: &mut [u8]) -> Result<(), Error> {
    if i.len() / 2 > o.len() {
        return Err(Error::BufferTooSmall);
    }

    for (i, o) in i.chunks(2).zip(o.iter_mut()) {
        *o = hex_byte_to_byte(i[0], i[1])?;
    }

    Ok(())
}
/// Convert a slice of hex characters to bytes
Convert a slice of hex characters to bytes
Convert a slice of hex characters to bytes
pub fn hex_to_bytes(i: &[u8], o: &mut [u8]) -> Result<(), Error> {
    if i.len() / 2 > o.len() {
        return Err(Error::BufferTooSmall);
    }
    for (i, o) in i.chunks(2).zip(o.iter_mut()) {
        *o = hex_byte_to_byte(i[0], i[1])?;
    }
    Ok(())
}
pub fn hex_to_bytes ( i : & [ u8 ] , o : & mut [ u8 ] ) -> Result < ( ) , Error > { if i . len ( ) / 2 > o . len ( ) { return Err ( Error :: BufferTooSmall ) ; } for ( i , o ) in i . chunks ( 2 ) . zip ( o . iter_mut ( ) ) { * o = hex_byte_to_byte ( i [ 0 ] , i [ 1 ] ) ? ; } Ok ( ( ) ) }
Convert a slice of hex characters to bytes
Convert a slice of hex characters to bytes
i
&[u8]
o
&mut [u8]
i
&[u8]
o
&mut [u8]