pub fn append_u16(buf: &mut Vec<u8>, data: u16)