[][src]Struct gboxide::cartridge::Header

pub struct Header {
    pub raw_entry_point: [u8; 4],
    pub raw_nintendo_logo: [u8; 48],
    pub raw_title: [u8; 16],
    pub raw_manufacturer_code: [u8; 4],
    pub raw_cgb_flag: u8,
    pub raw_new_licensee_code: [u8; 2],
    pub raw_sgb_flag: u8,
    pub raw_cartridge_type: u8,
    pub raw_rom_size: u8,
    pub raw_ram_size: u8,
    pub raw_destination_code: u8,
    pub raw_old_licensee_code: u8,
    pub raw_mask_rom_version_number: u8,
    pub raw_header_checksum: u8,
    pub raw_global_checksum: [u8; 2],
    pub title: String,
    pub manufacturer_code: String,
    pub cgb_flag: bool,
    pub licensee_code: String,
    pub sgb_flag: bool,
    pub cartridge_type: CartridgeType,
    pub rom_size: u32,
    pub ram_size: u32,
    pub japanese: bool,
    pub version_number: u8,
    pub header_checksum: u8,
    pub calculated_header_checksum: u8,
    pub global_checksum: u16,
}

Fields

raw_entry_point: [u8; 4]raw_title: [u8; 16]raw_manufacturer_code: [u8; 4]raw_cgb_flag: u8raw_new_licensee_code: [u8; 2]raw_sgb_flag: u8raw_cartridge_type: u8raw_rom_size: u8raw_ram_size: u8raw_destination_code: u8raw_old_licensee_code: u8raw_mask_rom_version_number: u8raw_header_checksum: u8raw_global_checksum: [u8; 2]title: Stringmanufacturer_code: Stringcgb_flag: boollicensee_code: Stringsgb_flag: boolcartridge_type: CartridgeTyperom_size: u32ram_size: u32japanese: boolversion_number: u8header_checksum: u8calculated_header_checksum: u8global_checksum: u16

Methods

impl Header[src]

pub fn new(header_bytes: [u8; 80]) -> Result<Header, Box<dyn Error>>[src]

Trait Implementations

impl Debug for Header[src]

Auto Trait Implementations

impl Send for Header

impl Sync for Header

impl Unpin for Header

impl UnwindSafe for Header

impl RefUnwindSafe for Header

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]