[−][src]Struct unshield::Archive
An interface for reading an InstallShield Z archive.
You can use this to read a Z archive out of any type that
implements Read
and Seek
.
Implementations
impl<R> Archive<R> where
R: Read + Seek,
[src]
R: Read + Seek,
pub fn new(inner: R) -> Result<Self>
[src]
Create a new Z archive from an underlying reader.
This function will parse the file header and table of
contents. If either of these fail, it will return an Err
.
pub fn list(&self) -> impl Iterator<Item = &FileInfo>
[src]
List the files contained in the archive.
pub fn load(&mut self, path: &str) -> Result<Vec<u8>>
[src]
Load a file into a Vec
.
pub fn load_compressed(&mut self, path: &str) -> Result<Vec<u8>>
[src]
Load a file into a Vec
without decompressing it.
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for Archive<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for Archive<R> where
R: Send,
R: Send,
impl<R> Sync for Archive<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Archive<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Archive<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,