xtoi2

Function xtoi2 

Source
pub const fn xtoi2(s: &[u8], e: u8) -> Option<u8>
Expand description

Converts the next two hex digits of s into a byte. If s is longer than 2 bytes then the third byte must match e.

Returns None if parsing fails.