Struct gc_gcm::DolFile[][src]

pub struct DolFile {
    pub header: DolHeader,
    pub raw_data: Vec<u8>,
}

A dol ("Dolphin") executable file, used as the main executable of the gamecube

use gc_gcm::DolFile;

let dol = DolFile::open("boot.dol").unwrap();

println!(".text size: {:#x?}", dol.header.section_lengths[0]);

Fields

header: DolHeaderraw_data: Vec<u8>

Implementations

impl DolFile[src]

pub fn from_reader<R>(reader: &mut R) -> Result<Self, GcmError> where
    R: Read + Seek
[src]

Parse a dol from a reader that implements io::Read and io::Seek

impl DolFile[src]

pub fn open<P>(path: P) -> Result<Self, GcmError> where
    P: AsRef<Path>, 
[src]

Open a file from a given bath as a DolFile.

Trait Implementations

impl BinRead for DolFile[src]

type Args = ()

The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more

impl Debug for DolFile[src]

Auto Trait Implementations

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.