[][src]Struct metagoblin::mach::header::Header32

#[repr(C)]pub struct Header32 {
    pub magic: u32,
    pub cputype: u32,
    pub cpusubtype: u32,
    pub filetype: u32,
    pub ncmds: u32,
    pub sizeofcmds: u32,
    pub flags: u32,
}

A 32-bit Mach-o header

Fields

magic: u32

mach magic number identifier

cputype: u32

cpu specifier

cpusubtype: u32

machine specifier

filetype: u32

type of file

ncmds: u32

number of load commands

sizeofcmds: u32

the size of all the load commands

flags: u32

flags

Implementations

impl Header32[src]

pub fn from_bytes(bytes: &[u8; 28]) -> &Header32[src]

Transmutes the given byte array into the corresponding 32-bit Mach-o header

pub fn size(&self) -> usize[src]

Trait Implementations

impl Clone for Header32[src]

impl Copy for Header32[src]

impl Debug for Header32[src]

impl Default for Header32[src]

impl From<Header> for Header32[src]

impl From<Header32> for Header[src]

impl Plain for Header32[src]

impl SizeWith<Endian> for Header32[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for Header32 where
    Header32: 'a, 
[src]

type Error = Error

impl<'a> TryIntoCtx<Endian, [u8]> for &'a Header32[src]

type Error = Error

impl TryIntoCtx<Endian, [u8]> for Header32[src]

type Error = Error

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.