Struct rpak::PakArchive[][src]

pub struct PakArchive<'a> {
    pub files: Vec<(String, &'a [u8])>,
}
Expand description

An in-memory representation of a PAK archive

Fields

files: Vec<(String, &'a [u8])>

Files contained within this archive

Implementations

Create a new empty PAK archive.

Add a file to the archive with the given file name, containing the given data.

Decode a PAK archive from an input byte slice.

Returns Err(()) if the PAK file header was invalid.

Encode this archive representation into a byte vector.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.