pub fn le_i16(bytes: &[u8]) -> i16
Returns the first two bytes in the supplied slice as a little-endian i16.
i16
let bytes = &[1, 2, 3, 4, 5, 6, 7, 8]; assert_eq!(le_i16(bytes), 0x0201);