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