pub struct Note<'data, Elf> where
Elf: FileHeader, { /* private fields */ }
Expand description
A parsed NoteHeader
.
Implementations
sourceimpl<'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]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn name(&self) -> &'data [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [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
.
Trait Implementations
Auto Trait Implementations
impl<'data, Elf> RefUnwindSafe for Note<'data, Elf> where
<Elf as FileHeader>::NoteHeader: RefUnwindSafe,
impl<'data, Elf> Send for Note<'data, Elf> where
<Elf as FileHeader>::NoteHeader: Sync,
impl<'data, Elf> Sync for Note<'data, Elf> where
<Elf as FileHeader>::NoteHeader: Sync,
impl<'data, Elf> Unpin for Note<'data, Elf>
impl<'data, Elf> UnwindSafe for Note<'data, Elf> where
<Elf as FileHeader>::NoteHeader: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more