/// Loads a tarball from the specified file.
Loads a tarball from the specified file.
Loads a tarball from the specified file .
pub fn load(mut source: File) -> Result<Box<dyn Archive>, failure::Error> {
        let uncompressed_size = load_uncompressed_size(&mut source);
        let compressed_size = source.metadata()?.len();
        Ok(Box::new(Tarball {
            uncompressed_size,
            compressed_size,
            data: Box::new(source),
            origin: Origin::Local,
        }))
    }
pub fn load ( mut source : File ) -> Result < Box < dyn Archive > , failure :: Error > { let uncompressed_size = load_uncompressed_size ( & mut source ) ; let compressed_size = source . metadata ( ) ? . len ( ) ; Ok ( Box :: new ( Tarball { uncompressed_size , compressed_size , data : Box :: new ( source ) , origin : Origin :: Local , } ) ) }
Loads a tarball from the specified file.
Loads a tarball from the specified file .
source
File