pub struct Note<'data, Elf>where
    Elf: FileHeader,{
    header: &'data Elf::NoteHeader,
    name: &'data [u8],
    desc: &'data [u8],
}Expand description
A parsed NoteHeader.
Fields§
§header: &'data Elf::NoteHeader§name: &'data [u8]§desc: &'data [u8]Implementations§
Source§impl<'data, Elf: FileHeader> Note<'data, Elf>
 
impl<'data, Elf: FileHeader> Note<'data, Elf>
Sourcepub fn n_type(&self, endian: Elf::Endian) -> u32
 
pub fn n_type(&self, endian: Elf::Endian) -> u32
Return the n_type field of the NoteHeader.
The meaning of this field is determined by name.
Sourcepub fn n_namesz(&self, endian: Elf::Endian) -> u32
 
pub fn n_namesz(&self, endian: Elf::Endian) -> u32
Return the n_namesz field of the NoteHeader.
Sourcepub fn n_descsz(&self, endian: Elf::Endian) -> u32
 
pub fn n_descsz(&self, endian: Elf::Endian) -> u32
Return the n_descsz field of the NoteHeader.
Sourcepub fn name_bytes(&self) -> &'data [u8] ⓘ
 
pub fn name_bytes(&self) -> &'data [u8] ⓘ
Return the bytes for the name field following the NoteHeader.
This field is usually a string including one or more trailing null bytes (but it is not required to be).
The length of this field is given by n_namesz.
Sourcepub fn name(&self) -> &'data [u8] ⓘ
 
pub fn name(&self) -> &'data [u8] ⓘ
Return the bytes for the name field following the NoteHeader,
excluding all trailing null bytes.
Sourcepub fn desc(&self) -> &'data [u8] ⓘ
 
pub fn desc(&self) -> &'data [u8] ⓘ
Return the bytes for the desc field following the NoteHeader.
The length of this field is given by n_descsz. The meaning
of this field is determined by name and n_type.
Sourcepub fn gnu_properties(
    &self,
    endian: Elf::Endian,
) -> Option<GnuPropertyIterator<'data, Elf::Endian>>
 
pub fn gnu_properties( &self, endian: Elf::Endian, ) -> Option<GnuPropertyIterator<'data, Elf::Endian>>
Return an iterator for properties if this note’s type is elf::NT_GNU_PROPERTY_TYPE_0.