Function read_u16

pub unsafe fn read_u16(ptr: *const u8) -> u16
Expand description

Reads a big-endian u16 from a u8 pointer.

§Safety

The pointer must point to at least 2 bytes.