Struct pmd_sir0::Sir0 [−][src]
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.
Implementations
impl<T: Read + Seek> Sir0<T>
[src]
pub fn new(mut 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
Auto Trait Implementations
impl<T> RefUnwindSafe for Sir0<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Sir0<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Sir0<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Sir0<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Sir0<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub 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>,