Trait lief::elf::note::NoteBase

pub trait NoteBase {
    // Provided methods
    fn name(&self) -> String { ... }
    fn get_type(&self) -> Type { ... }
    fn original_type(&self) -> u32 { ... }
    fn size(&self) -> u64 { ... }
    fn description(&self) -> &[u8]  { ... }
}
Expand description

Trait shared by all Notes

Provided Methods§

fn name(&self) -> String

Return the name of the note (also known as ‘owner’ )

fn get_type(&self) -> Type

Return the type of the note. This type does not match the NT_ type value. For accessing the original NT_ value, check NoteBase::original_type

fn original_type(&self) -> u32

The original NT_xxx integer value. The meaning of this value likely depends on the owner of the note.

fn size(&self) -> u64

Size of the raw note which includes padding

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

Return the description associated with the note

Trait Implementations§

§

impl Debug for &dyn NoteBase

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

§

impl NoteBase for Generic<'_>