[][src]Trait process_memory::CopyAddress

pub trait CopyAddress {
    fn copy_address(&self, addr: usize, buf: &mut [u8]) -> Result<()>;

    fn get_offset(&self, offsets: &[usize]) -> Result<usize> { ... }
}

A trait that defines that it is possible to copy some memory from something represented by a type into a buffer.

Required methods

fn copy_address(&self, addr: usize, buf: &mut [u8]) -> Result<()>

Copy an address into user-defined buffer.

Loading content...

Provided methods

fn get_offset(&self, offsets: &[usize]) -> Result<usize>

Get the actual memory location from a set of offsets.

If copy_address is already defined, then we can provide a standard implementation that will work across all operating systems.

Loading content...

Implementors

impl CopyAddress for ProcessHandle[src]

Loading content...