pub fn content(&self) -> io::Result<Vec<u8>> {
        let records = &self.records()?[self.readable_records_range()];
        let mut record_data = Vec::with_capacity(records.iter().map(|r| r.record_data.len()).sum());
        for record in records {
            record_data.extend_from_slice(&record.record_data);
        }
        Ok(record_data)
    }
/// Returns all readable records content decompressed as a Vec
Returns all readable records content decompressed as a Vec
Returns all readable records content decompressed as a Vec
pub fn content(&self) -> io::Result<Vec<u8>> {
        let records = &self.records()?[self.readable_records_range()];
        let mut record_data = Vec::with_capacity(records.iter().map(|r| r.record_data.len()).sum());
        for record in records {
            record_data.extend_from_slice(&record.record_data);
        }
        Ok(record_data)
    }
pub fn content ( & self ) -> io :: Result < Vec < u8 > > { let records = & self . records ( ) ? [ self . readable_records_range ( ) ] ; let mut record_data = Vec :: with_capacity ( records . iter ( ) . map ( | r | r . record_data . len ( ) ) . sum ( ) ) ; for record in records { record_data . extend_from_slice ( & record . record_data ) ; } Ok ( record_data ) }
Returns all readable records content decompressed as a Vec
Returns all readable records content decompressed as a Vec
&self
&self