Struct gc_gcm::GcmFile[][src]

pub struct GcmFile {
    pub game_id: GameId,
    pub disc_number: u8,
    pub revision: u8,
    pub internal_name: String,
    pub dol_offset: u32,
    pub dol: DolFile,
    pub filesystem: FileSystem,
    pub boot_bin: Vec<u8>,
    pub bi2_bin: Vec<u8>,
    pub apploader_header: ApploaderHeader,
    pub apploader: Vec<u8>,
    pub fst_bytes: Vec<u8>,
    // some fields omitted
}

A parsed GCM/ISO file

Fields

game_id: GameIddisc_number: u8revision: u8internal_name: Stringdol_offset: u32dol: DolFilefilesystem: FileSystemboot_bin: Vec<u8>bi2_bin: Vec<u8>apploader_header: ApploaderHeaderapploader: Vec<u8>fst_bytes: Vec<u8>

Implementations

impl GcmFile[src]

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

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

impl GcmFile[src]

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

Open a file from a given bath as a GcmFile.

Trait Implementations

impl BinRead for GcmFile[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 GcmFile[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.