Skip to main content

non_zero_u16_len

Function non_zero_u16_len 

Source
fn non_zero_u16_len(bytes: [u8; 2]) -> Result<usize, Error>
Expand description

Converts two bytes into a usize, erroring if the result is zero.