SBMemoryRegionInfo

Struct SBMemoryRegionInfo 

Source
pub struct SBMemoryRegionInfo {
    pub raw: SBMemoryRegionInfoRef,
}
Expand description

Information about memory regions within a process.

See also:

Fields§

§raw: SBMemoryRegionInfoRef

The underlying raw SBMemoryRegionInfoRef.

Implementations§

Source§

impl SBMemoryRegionInfo

Source

pub fn clear(&self)

Source

pub fn get_region_base(&self) -> lldb_addr_t

Get the base address of this memory range.

See also:

Source

pub fn get_region_end(&self) -> lldb_addr_t

Get the end address of this memory range.

See also:

Source

pub fn is_readable(&self) -> bool

Check if this memory address is marked readable to the process.

See also:

Source

pub fn is_writable(&self) -> bool

Check if this memory address is marked writable to the process.

See also:

Source

pub fn is_executable(&self) -> bool

Check if this memory address is marked executable to the process.

See also:

Source

pub fn is_mapped(&self) -> bool

Check if this memory address is mapped into the process address space.

Source

pub fn get_name(&self) -> Option<String>

Returns the name of the memory region mapped at the given address.

In case of memory mapped files it is the absolute path of the file, otherwise it is a name associated with the memory region. If no name can be determined, it returns None.

Source

pub fn has_dirty_memory_page_list(&self) -> bool

Returns whether this memory region has a list of memory pages that have been modified – that are dirty.

The number of dirty pages may still be 0.

See also:

Source

pub fn dirty_pages(&self) -> SBMemoryRegionInfoDirtyPageIter<'_>

Returns an iterator over the addresses of modified pages in this region.

Check SBMemoryRegionInfo::has_dirty_memory_page_list() to see if this information is available for this region.

Source

pub fn get_page_size(&self) -> i32

Returns the size of a memory page in this region or 0 if this information is unavailable.

Trait Implementations§

Source§

impl Clone for SBMemoryRegionInfo

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SBMemoryRegionInfo

Source§

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

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

impl Default for SBMemoryRegionInfo

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for SBMemoryRegionInfo

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for SBMemoryRegionInfo

Source§

impl Sync for SBMemoryRegionInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.