Trait object::ObjectSection
[−]
[src]
pub trait ObjectSection<'data> { fn address(&self) -> u64; fn size(&self) -> u64; fn data(&self) -> &'data [u8]; fn name(&self) -> Option<&str>; fn segment_name(&self) -> Option<&str>; fn kind(&self) -> SectionKind; }
A section defined in an object file.
Required Methods
fn address(&self) -> u64
Returns the address of the section.
fn size(&self) -> u64
Returns the size of the section in memory.
fn data(&self) -> &'data [u8]
Returns a reference to the contents of the section. The length of this data may be different from the size of the section in memory.
fn name(&self) -> Option<&str>
Returns the name of the section.
fn segment_name(&self) -> Option<&str>
Returns the name of the segment for this section.
fn kind(&self) -> SectionKind
Return the kind of this section.
Implementors
impl<'data, 'file> ObjectSection<'data> for ElfSection<'data, 'file>
impl<'data> ObjectSection<'data> for MachOSection<'data>
impl<'data, 'file> ObjectSection<'data> for PeSection<'data, 'file>
impl<'data, 'file> ObjectSection<'data> for Section<'data, 'file>