Function parse_u16

Source
pub fn parse_u16<T: AsRef<[u8]>>(stream: &T, pos: &mut usize) -> u16
Expand description

Get a u16 from a vector of bytes and advance a position marker by 2

Note: written out as a generic here, TODO benchmark