pub fn slice_data_buf(version: Version, buffer: &[u8]) -> &[u8]