[][src]Function lazy_bytes_cast::read_u16

pub const fn read_u16(input: &[u8], cursor: usize) -> u16

Read u16 at compile time.

cursor allows to specify position in slice, allowing avoid the need for slicing