Struct object::PeSegment [−][src]
pub struct PeSegment<'data, 'file> where
'data: 'file, { /* fields omitted */ }
A loadable section of a PeFile
.
Trait Implementations
impl<'data, 'file> Debug for PeSegment<'data, 'file> where
'data: 'file,
[src]
impl<'data, 'file> Debug for PeSegment<'data, 'file> where
'data: 'file,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'data, 'file> ObjectSegment<'data> for PeSegment<'data, 'file>
[src]
impl<'data, 'file> ObjectSegment<'data> for PeSegment<'data, 'file>
fn address(&self) -> u64
[src]
fn address(&self) -> u64
Returns the virtual address of the segment.
fn size(&self) -> u64
[src]
fn size(&self) -> u64
Returns the size of the segment in memory.
fn data(&self) -> &'data [u8]
[src]
fn data(&self) -> &'data [u8]
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]
fn name(&self) -> Option<&str>
Returns the name of the segment.