pub fn read_file(&mut self, name: &str) -> io::Result<FileReader<R>> {
        if let Some((folder_index, offset, size)) = self.find_file(name) {
            let mut folder_reader = self.read_folder(folder_index)?;
            folder_reader.seek(SeekFrom::Start(offset))?;
            Ok(FileReader { reader: folder_reader, offset: 0, size })
        } else {
            not_found!("No such file in cabinet: {:?}", name);
        }
    }
/// Returns a reader over the decompressed data for the file in the cabinet
/// with the given name.
Returns a reader over the decompressed data for the file in the cabinet
with the given name.
Returns a reader over the decompressed data for the file in the cabinet with the given name .
pub fn read_file(&mut self, name: &str) -> io::Result<FileReader<R>> {
        if let Some((folder_index, offset, size)) = self.find_file(name) {
            let mut folder_reader = self.read_folder(folder_index)?;
            folder_reader.seek(SeekFrom::Start(offset))?;
            Ok(FileReader { reader: folder_reader, offset: 0, size })
        } else {
            not_found!("No such file in cabinet: {:?}", name);
        }
    }
pub fn read_file ( & mut self , name : & str ) -> io :: Result < FileReader < R > > { if let Some ( ( folder_index , offset , size ) ) = self . find_file ( name ) { let mut folder_reader = self . read_folder ( folder_index ) ? ; folder_reader . seek ( SeekFrom :: Start ( offset ) ) ? ; Ok ( FileReader { reader : folder_reader , offset : 0 , size } ) } else { not_found ! ( " " name ) ; } }
Returns a reader over the decompressed data for the file in the cabinet
with the given name.
Returns a reader over the decompressed data for the file in the cabinet with the given name .
&mut self
name
&str
&mut self
name
&str