Struct object::MachOSegment
[−]
[src]
pub struct MachOSegment<'data, 'file> where
'data: 'file, { /* fields omitted */ }
A segment of a MachOFile
.
Trait Implementations
impl<'data, 'file> Debug for MachOSegment<'data, 'file> where
'data: 'file,
[src]
'data: 'file,
impl<'data, 'file> ObjectSegment<'data> for MachOSegment<'data, 'file>
[src]
fn address(&self) -> u64
[src]
Returns the virtual address of the segment.
fn size(&self) -> u64
[src]
Returns the size of the segment in memory.
fn data(&self) -> &'data [u8]
[src]
Returns a reference to the file contents of the segment. The length of this data may be different from the size of the segment in memory. Read more
fn name(&self) -> Option<&str>
[src]
Returns the name of the segment.