Trait ElfSection

Source
pub trait ElfSection {
    // Required methods
    fn shdr(&self) -> &dyn ElfSectionHeader;
    fn name(&self) -> &str;
    fn section_type(&self) -> &SectionType;
    fn flags(&self) -> BitFlags<SectionFlag>;
    fn data(&self) -> &[u8] ;
}
Expand description

A trait to provide all functions supported by ElfSectionXX structure representation. Dynamic dispatch is used to provide only function usages, thus 32-bit and 64-bit can be used alike.

Required Methods§

Source

fn shdr(&self) -> &dyn ElfSectionHeader

Internal shdr representation of this section. Note that since dynamic dispatch is used, this method mostly just provide the functionalities, not the full struct.

Source

fn name(&self) -> &str

Name of this section.

Source

fn section_type(&self) -> &SectionType

Type of this section

Source

fn flags(&self) -> BitFlags<SectionFlag>

Flags of this section

Source

fn data(&self) -> &[u8]

Data of this section

Implementors§