pub async fn entry_reader<'b>(&'b mut self, index: usize) -> Result<ConcurrentReader<'b, 'a>> {
        let entry = self.entries.get(index).ok_or(ZipError::EntryIndexOutOfBounds)?;

        if entry.data_descriptor() {
            return Err(ZipError::FeatureNotSupported("Entries with data descriptors"));
        }

        let mut cursor = Cursor::new(self.data.clone());
        cursor.seek(SeekFrom::Start(entry.data_offset())).await?;

        let reader = cursor.take(entry.compressed_size.unwrap().into());
        let reader = CompressionReader::from_reader(entry.compression(), reader);

        Ok(ZipEntryReader::from_raw(entry, reader, false))
    }
/// Opens an entry at the provided index for reading.
Opens an entry at the provided index for reading.
Opens an entry at the provided index for reading .
pub async fn entry_reader<'b>(&'b mut self, index: usize) -> Result<ConcurrentReader<'b, 'a>> {
        let entry = self.entries.get(index).ok_or(ZipError::EntryIndexOutOfBounds)?;
        if entry.data_descriptor() {
            return Err(ZipError::FeatureNotSupported("Entries with data descriptors"));
        }
        let mut cursor = Cursor::new(self.data.clone());
        cursor.seek(SeekFrom::Start(entry.data_offset())).await?;
        let reader = cursor.take(entry.compressed_size.unwrap().into());
        let reader = CompressionReader::from_reader(entry.compression(), reader);
        Ok(ZipEntryReader::from_raw(entry, reader, false))
    }
pub async fn entry_reader < ' b > ( & ' b mut self , index : usize ) -> Result < ConcurrentReader < ' b , ' a > > { let entry = self . entries . get ( index ) . ok_or ( ZipError :: EntryIndexOutOfBounds ) ? ; if entry . data_descriptor ( ) { return Err ( ZipError :: FeatureNotSupported ( " " ) ) ; } let mut cursor = Cursor :: new ( self . data . clone ( ) ) ; cursor . seek ( SeekFrom :: Start ( entry . data_offset ( ) ) ) . await ? ; let reader = cursor . take ( entry . compressed_size . unwrap ( ) . into ( ) ) ; let reader = CompressionReader :: from_reader ( entry . compression ( ) , reader ) ; Ok ( ZipEntryReader :: from_raw ( entry , reader , false ) ) }
Opens an entry at the provided index for reading.
Opens an entry at the provided index for reading .
&'b mut self
index
usize
&'b mut self
index
usize