pub fn append_slice(buf: &mut Vec<u8, Global>, data: &[u8])