pub fn read_u16(bytes: &[u8], offset: usize) -> Result<u16, BinaryLayoutError>Expand description
Reads little-endian u16 at offset.
ยงErrors
BinaryLayoutError::UnexpectedEof when fewer than two bytes remain.
pub fn read_u16(bytes: &[u8], offset: usize) -> Result<u16, BinaryLayoutError>Reads little-endian u16 at offset.
BinaryLayoutError::UnexpectedEof when fewer than two bytes remain.