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

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

A low level pack file reader

Methods

impl<'a, T> PackFile<'a, T> where
    T: Seek + BufRead
[src]

pub fn open<'b: 'a>(inner: &'b mut T) -> Self[src]

Open a file from a stream

pub fn check_magic(&mut self) -> FileResult<()>[src]

Check for the magic bytes at the beginning of the file

pub fn get_header(&mut self) -> FileResult<PKHeader>[src]

Load the header from the end of the file

pub fn get_entry(&mut self, addr: u32) -> FileResult<PKEntry>[src]

Load the header from the end of the file

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

Get an random access wrapper for the entries

pub fn get_entry_list(&mut self, addr: u32) -> FileResult<Vec<PKEntry>>[src]

Get a list of all entries

Auto Trait Implementations

impl<'a, T> Send for PackFile<'a, T> where
    T: Send

impl<'a, T> Sync for PackFile<'a, T> where
    T: Sync

Blanket Implementations

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.

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

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

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