Struct assembly_pack::pk::reader::PackFile[][src]

pub struct PackFile<'a, T> { /* fields omitted */ }
Expand description

A low level pack file reader

Implementations

Open a file from a stream

Check for the magic bytes at the beginning of the file

Load the header from the end of the file

pub fn get_entry(&mut self, addr: u32) -> Result<PKEntry>

Load the header from the end of the file

pub fn get_entry_accessor<'b>(
    &'b mut self,
    addr: u32
) -> Result<PackEntryAccessor<'b, 'a, T>>

Get an random access wrapper for the entries

pub fn get_entry_list(&mut self, addr: u32) -> Result<Vec<PKEntry>>

Get a list of all entries

Get a boxed reader for the file stream

Get some object with a read trait representing the data

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

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more

Performs the conversion.

Performs the conversion.

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more

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.