pub struct ModuleReader<'buf> { /* private fields */ }Implementations§
Source§impl<'buf> ModuleReader<'buf>
impl<'buf> ModuleReader<'buf>
pub fn new( module_memory: ProcessMemory<'buf>, ) -> Result<Self, ModuleReaderError>
Sourcepub fn soname_from_program_headers(
&mut self,
) -> Result<String, ModuleReaderError>
pub fn soname_from_program_headers( &mut self, ) -> Result<String, ModuleReaderError>
Read the SONAME using program headers to locate dynamic library information.
Sourcepub fn soname_from_sections(&mut self) -> Result<String, ModuleReaderError>
pub fn soname_from_sections(&mut self) -> Result<String, ModuleReaderError>
Read the SONAME using section headers to locate dynamic library information.
Sourcepub fn build_id_from_program_headers(
&mut self,
) -> Result<Vec<u8>, ModuleReaderError>
pub fn build_id_from_program_headers( &mut self, ) -> Result<Vec<u8>, ModuleReaderError>
Read the build id from a program header note.
Sourcepub fn build_id_from_section(&mut self) -> Result<Vec<u8>, ModuleReaderError>
pub fn build_id_from_section(&mut self) -> Result<Vec<u8>, ModuleReaderError>
Read the build id from a notes section.
Sourcepub fn build_id_generate_from_text(
&mut self,
) -> Result<Vec<u8>, ModuleReaderError>
pub fn build_id_generate_from_text( &mut self, ) -> Result<Vec<u8>, ModuleReaderError>
Generate a build id by hashing the first page of the text section.
Auto Trait Implementations§
impl<'buf> Freeze for ModuleReader<'buf>
impl<'buf> RefUnwindSafe for ModuleReader<'buf>
impl<'buf> Send for ModuleReader<'buf>
impl<'buf> Sync for ModuleReader<'buf>
impl<'buf> Unpin for ModuleReader<'buf>
impl<'buf> UnwindSafe for ModuleReader<'buf>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more