Skip to main content

write_u16be

Function write_u16be 

Source
pub fn write_u16be(buf: &mut [u8], val: u16)
Expand description

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