Function read_u16_slice

Source
pub fn read_u16_slice(data: &[u8], start: usize) -> Result<u16, ProgramError>
Expand description

ยงSafety

The caller is responsible for ensuring that the range [start..start + 2] is within bounds of the data slice.