findshlibs

Type Alias TargetSharedLibrary

Source
pub type TargetSharedLibrary<'a> = SharedLibrary<'a>;
Expand description

The SharedLibrary trait implementation for the target operating system.

Aliased Type§

struct TargetSharedLibrary<'a> { /* private fields */ }

Trait Implementations

Source§

impl<'a> Debug for SharedLibrary<'a>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a> SharedLibrary for SharedLibrary<'a>

Source§

type Segment = Segment<'a>

The associated segment type for this shared library.
Source§

type SegmentIter = SegmentIter<'a>

An iterator over a shared library’s segments.
Source§

fn name(&self) -> &OsStr

Get the name of this shared library.
Source§

fn id(&self) -> Option<SharedLibraryId>

Get the code-id of this shared library if available.
Source§

fn segments(&self) -> Self::SegmentIter

Iterate over this shared library’s segments.
Source§

fn virtual_memory_bias(&self) -> Bias

Get the bias of this shared library. Read more
Source§

fn each<F, C>(f: F)
where F: FnMut(&Self) -> C, C: Into<IterationControl>,

Find all shared libraries in this process and invoke f with each one.
Source§

fn debug_name(&self) -> Option<&OsStr>

Get the name of the debug file with this shared library if there is one.
Source§

fn debug_id(&self) -> Option<SharedLibraryId>

Get the debug-id of this shared library if available.
Source§

fn actual_load_addr(&self) -> Avma

Returns the address of where the library is loaded into virtual memory. Read more
Source§

fn stated_load_addr(&self) -> Svma

Returns the address of where the library prefers to be loaded into virtual memory. Read more
Source§

fn len(&self) -> usize

Returns the size of the image. Read more
Source§

fn avma_to_svma(&self, address: Avma) -> Svma

Given an AVMA within this shared library, convert it back to an SVMA by removing this shared library’s bias.