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

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

A low level pack file reader

Implementations

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

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

Open a file from a stream

pub fn check_magic(&mut self) -> Result<(), FileError>[src]

Check for the magic bytes at the beginning of the file

pub fn get_header(&mut self) -> Result<PKHeader, FileError>[src]

Load the header from the end of the file

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

Load the header from the end of the file

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

Get an random access wrapper for the entries

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

Get a list of all entries

pub fn get_file_stream(
    &'b mut self,
    entry: PKEntry
) -> PackStreamReader<'b, 'a, T>

Notable traits for PackStreamReader<'b, 'a, T>

impl<'b, 'a, T> Read for PackStreamReader<'b, 'a, T> where
    T: Seek + BufRead
[src]

Get a boxed reader for the file stream

pub fn get_file_data<'c, 'b>(
    &'b mut self,
    entry: PKEntry
) -> Result<Box<dyn Read + 'c, Global>, StreamError> where
    'b: 'c, 
[src]

Get some object with a read trait representing the data

Auto Trait Implementations

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

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

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

impl<'a, T> Unpin for PackFile<'a, T>

impl<'a, T> !UnwindSafe for PackFile<'a, T>

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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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.