Skip to main content

read_u16be

Function read_u16be 

Source
pub fn read_u16be(buf: &[u8]) -> u16
Expand description

Read a big-endian u16 from a 2-byte slice. Caller guarantees buf.len() >= 2.