Trait remoteprocess::ProcessMemory [−][src]
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
Provided methods
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>
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>
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