[][src]Trait remoteprocess::ProcessMemory

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

    fn copy(&self, addr: usize, length: usize) -> Result<Vec<u8>, Error> { ... }
fn copy_struct<T>(&self, addr: usize) -> Result<T, Error> { ... }
fn copy_pointer<T>(&self, ptr: *const T) -> Result<T, Error> { ... }
fn copy_vec<T>(&self, addr: usize, length: usize) -> Result<Vec<T>, Error> { ... } }

Required methods

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

Copies memory from another process into an already allocated byte buffer

Loading content...

Provided methods

fn copy(&self, addr: usize, length: usize) -> Result<Vec<u8>, Error>

Copies a series of bytes from another process. Main difference with 'read' is that this will allocate memory for you

fn copy_struct<T>(&self, addr: usize) -> Result<T, Error>

Copies a structure from another process

fn copy_pointer<T>(&self, ptr: *const T) -> Result<T, Error>

Given a pointer that points to a struct in another process, returns the struct

fn copy_vec<T>(&self, addr: usize, length: usize) -> Result<Vec<T>, Error>

Copies a series of bytes from another process into a vector of structures of type T.

Loading content...

Implementors

impl ProcessMemory for Process[src]

Loading content...