Struct mach_o::Header [] [src]

pub struct Header<'a> {
    // some fields omitted
}

A mach-o file header.

Methods

impl<'a> Header<'a>
[src]

fn new(input: &'a [u8]) -> Result<Header<'a>, Error>

Parse the mach-o file header from the given input slice.

fn magic(&self) -> u32

Get the magic value for this header.

fn get_section(&self, segment_name: &CStr, section_name: &CStr) -> Option<Section<'a>>

Get the data for a given section, if it exists.

Trait Implementations

impl<'a> Debug for Header<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> Clone for Header<'a>
[src]

fn clone(&self) -> Header<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> Copy for Header<'a>
[src]