TargetMemory

Trait TargetMemory 

Source
pub trait TargetMemory: ReadMemory + WriteMemory {
    // Required methods
    fn enum_memory(
        &self,
    ) -> UDbgResult<Box<dyn Iterator<Item = MemoryPage> + '_>>;
    fn virtual_query(&self, address: usize) -> Option<MemoryPage>;
    fn collect_memory_info(&self) -> Vec<MemoryPage>;

    // Provided methods
    fn virtual_alloc(
        &self,
        address: usize,
        size: usize,
        ty: &str,
    ) -> UDbgResult<usize> { ... }
    fn virtual_free(&self, address: usize) -> UDbgResult<()> { ... }
}
Expand description

Interfaces of memory operation

Required Methods§

Source

fn enum_memory(&self) -> UDbgResult<Box<dyn Iterator<Item = MemoryPage> + '_>>

Enumerate the memory page in target memory space

Source

fn virtual_query(&self, address: usize) -> Option<MemoryPage>

Query the memory page of address in target memory space

Source

fn collect_memory_info(&self) -> Vec<MemoryPage>

Collect all memory infomation, includes its information of usage

Provided Methods§

Source

fn virtual_alloc( &self, address: usize, size: usize, ty: &str, ) -> UDbgResult<usize>

Source

fn virtual_free(&self, address: usize) -> UDbgResult<()>

Implementors§