[−][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>(inner: &'b mut T) -> PackFile<'a, T> where
'b: 'a,
[src]
'b: 'a,
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]
&'b mut self,
addr: u32
) -> Result<PackEntryAccessor<'b, 'a, T>, FileError>
Get an random access wrapper for the entries
pub fn get_entry_list(&mut self, addr: u32) -> Result<Vec<PKEntry>, FileError>
[src]
Get a list of all entries
ⓘImportant traits for PackStreamReader<'b, 'a, T>pub fn get_file_stream(
&'b mut self,
entry: PKEntry
) -> PackStreamReader<'b, 'a, T>
[src]
ⓘImportant traits for PackStreamReader<'b, 'a, T>
&'b mut self,
entry: PKEntry
) -> PackStreamReader<'b, 'a, T>
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>, StreamError> where
'b: 'c,
[src]
&'b mut self,
entry: PKEntry
) -> Result<Box<dyn Read + 'c>, StreamError> where
'b: 'c,
Get some object with a read trait representing the data
Auto Trait Implementations
impl<'a, T> Send for PackFile<'a, T> where
T: Send,
T: Send,
impl<'a, T> Unpin for PackFile<'a, T>
impl<'a, T> Sync for PackFile<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> RefUnwindSafe for PackFile<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> !UnwindSafe for PackFile<'a, T>
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,