pub struct DolFile {
pub header: DolHeader,
pub raw_data: Vec<u8>,
}
Expand description
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: DolHeader
§raw_data: Vec<u8>
Implementations§
Trait Implementations§
Source§impl BinRead for DolFile
impl BinRead for DolFile
Source§type Args = ()
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
Source§fn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binread_generated_var_reader: &mut R, __binread_generated_var_options: &ReadOptions, __binread_generated_var_arguments: Self::Args, ) -> BinResult<Self>
Read the type from the reader
fn after_parse<R: Read + Seek>( &mut self, __binread_generated_var_reader: &mut R, __binread_generated_var_options: &ReadOptions, __binread_generated_var_arguments: Self::Args, ) -> BinResult<()>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read the type from the reader while assuming no arguments have been passed Read more
Auto Trait Implementations§
impl Freeze for DolFile
impl RefUnwindSafe for DolFile
impl Send for DolFile
impl Sync for DolFile
impl Unpin for DolFile
impl UnwindSafe for DolFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more