Function read_u16

Source
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.