Trait findshlibs::Segment [] [src]

pub trait Segment: Sized + Debug {
    type SharedLibrary: SharedLibrary<Segment = Self>;
    fn name(&self) -> &CStr;
fn stated_virtual_memory_address(&self) -> Svma;
fn len(&self) -> usize; fn actual_virtual_memory_address(&self, shlib: &Self::SharedLibrary) -> Avma { ... }
fn contains_svma(&self, address: Svma) -> bool { ... }
fn contains_avma(&self, shlib: &Self::SharedLibrary, address: Avma) -> bool { ... } }

A mapped segment in a shared library.

Associated Types

The associated shared library type for this segment.

Required Methods

Get this segment's name.

Get this segment's stated virtual address of this segment.

This is the virtual memory address without the bias applied. See the module documentation for details.

Get the length of this segment in memory (in bytes).

Provided Methods

Get this segment's actual virtual memory address.

This is the virtual memory address with the bias applied. See the module documentation for details.

Does this segment contain the given address?

Does this segment contain the given address?

Implementors