pub fn write_u16be(buf: &mut [u8], val: u16)
Write a big-endian u16 into a 2-byte slice. Caller guarantees buf.len() >= 2.
buf.len() >= 2