read_u16_unchecked

Function read_u16_unchecked 

Source
pub unsafe fn read_u16_unchecked(data: &[u8]) -> (u16, &[u8])
Expand description

Reads an u16 from the given modbus data without performing bounds checks. The data is considered to be big endian with msB first.