pub struct Note<'data, Elf>where
Elf: FileHeader,{ /* private fields */ }Expand description
A parsed NoteHeader.
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(&self) -> &'data [u8] ⓘ
pub fn name(&self) -> &'data [u8] ⓘ
Return the bytes for the name field following the NoteHeader,
excluding any null terminator.
This field is usually a string including a null terminator (but it is not required to be).
The length of this field (including any null terminator) is given by
n_namesz.