[][src]Struct pmd_sir0::Sir0

pub struct Sir0<T: Read + Seek> { /* fields omitted */ }

A Sir0 file, used in pokémon mystery dungeon on 3ds and DS (only tested with the 3ds version) A Sir0 file contain a file, but have pointer to them.

Methods

impl<T: Read + Seek> Sir0<T>[src]

pub fn new(file: T) -> Result<Self, Sir0Error>[src]

Create a new Sir0 from the file.

pub fn offsets_len(&self) -> usize[src]

return the number of offsets this file contain

pub fn offsets_get(&self, value: usize) -> Option<&u64>[src]

return the offset n°x. Offsets are in range 0..offsets_len.

pub fn get_header(&self) -> &Vec<u8>[src]

return the header of the file. It is independant of the Sir0 file format.

pub fn get_file(&mut self) -> &mut T[src]

return the file contained in this sir0 file. It is the full sir0 file, with header and footer.

Trait Implementations

impl<T: Debug + Read + Seek> Debug for Sir0<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Sir0<T> where
    T: RefUnwindSafe

impl<T> Send for Sir0<T> where
    T: Send

impl<T> Sync for Sir0<T> where
    T: Sync

impl<T> Unpin for Sir0<T> where
    T: Unpin

impl<T> UnwindSafe for Sir0<T> where
    T: UnwindSafe

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> 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.