Function read_i16

pub unsafe fn read_i16(ptr: *const u8) -> i16
Expand description

Reads a big-endian i16 from a u8 pointer.

§Safety

The pointer must point to at least 2 bytes.