[−][src]Struct assembly::pk::reader::PackFile
A low level pack file reader
Methods
impl<'a, T> PackFile<'a, T> where
T: Seek + BufRead,
[src]
T: Seek + BufRead,
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]
&'b mut self,
addr: u32
) -> FileResult<PackEntryAccessor<'b, 'a, T>>
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,
T: Send,
impl<'a, T> Sync for PackFile<'a, T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,