[][src]Struct unshield::Archive

pub struct Archive<R> { /* fields omitted */ }

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]

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

impl<R: Debug> Debug for Archive<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for Archive<R> where
    R: RefUnwindSafe

impl<R> Send for Archive<R> where
    R: Send

impl<R> Sync for Archive<R> where
    R: Sync

impl<R> Unpin for Archive<R> where
    R: Unpin

impl<R> UnwindSafe for Archive<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.