Struct mach_o::Header
[−]
[src]
pub struct Header<'a> { /* 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 is_native_byteorder(&self) -> bool
Returns true if the object file is encoded with the same byteorder that the current platform uses natively.
fn is_64_bit(&self) -> bool
Returns true if the object file is 64-bit, false if it is 32-bit.
fn get_section(
&self,
segment_name: &CStr,
section_name: &CStr
) -> Option<Section<'a>>
&self,
segment_name: &CStr,
section_name: &CStr
) -> Option<Section<'a>>
Get the data for a given section, if it exists.
Trait Implementations
impl<'a> Copy for Header<'a>
[src]
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