[][src]Trait remoteprocess::ProcessMemory

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

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

Required methods

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

Copies memory from another process into an already allocated byte buffer

Loading content...

Provided methods

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

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

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

Copies a structure from another process

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

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

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

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...