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

        let mut guarded_reader = GuardedReader { reader: self.reader.clone() };

        guarded_reader.seek(SeekFrom::Start(entry.data_offset())).await?;

        let reader = guarded_reader.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<'a>(&'a self, index: usize) -> Result<ZipEntryReader<'a, GuardedReader<R>>> {
        let entry = self.entries.get(index).ok_or(ZipError::EntryIndexOutOfBounds)?;
        let mut guarded_reader = GuardedReader { reader: self.reader.clone() };
        guarded_reader.seek(SeekFrom::Start(entry.data_offset())).await?;
        let reader = guarded_reader.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 < ' a > ( & ' a self , index : usize ) -> Result < ZipEntryReader < ' a , GuardedReader < R > > > { let entry = self . entries . get ( index ) . ok_or ( ZipError :: EntryIndexOutOfBounds ) ? ; let mut guarded_reader = GuardedReader { reader : self . reader . clone ( ) } ; guarded_reader . seek ( SeekFrom :: Start ( entry . data_offset ( ) ) ) . await ? ; let reader = guarded_reader . 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 .
&'a self
index
usize
&'a self
index
usize