Function read_i16

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