Struct object::Segment
[−]
[src]
pub struct Segment<'data, 'file> where
'data: 'file, { /* fields omitted */ }
A segment of a File
.
Trait Implementations
impl<'data, 'file> Debug for Segment<'data, 'file>
[src]
impl<'data, 'file> ObjectSegment<'data> for Segment<'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.