Skip to main content

u8

Function u8 

Source
pub fn u8(data: &[u8], off: usize) -> u8
Expand description

Read a single byte at off; 0 if off is past the end. Never panics. (Endianness is irrelevant for one byte; provided so callers never index data[off] directly.)