Trait object::ObjectSection[][src]

pub trait ObjectSection<'data> {
    fn address(&self) -> u64;
fn size(&self) -> u64;
fn data(&self) -> Cow<'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

Returns the address of the section.

Returns the size of the section in memory.

Returns a reference to the raw contents of the section. The length of this data may be different from the size of the section in memory.

This does not do any decompression.

Returns the name of the section.

Returns the name of the segment for this section.

Return the kind of this section.

Implementors