Struct rbspy_testdata::CoreDump
source · pub struct CoreDump { /* private fields */ }Expand description
Allows testing offline with a core dump of a Ruby process.
Trait Implementations§
source§impl ProcessMemory for CoreDump
impl ProcessMemory for CoreDump
source§fn read(&self, addr: usize, buf: &mut [u8]) -> Result<(), ProcessError>
fn read(&self, addr: usize, buf: &mut [u8]) -> Result<(), ProcessError>
Copies memory from another process into an already allocated
byte buffer
source§fn copy(&self, addr: usize, length: usize) -> Result<Vec<u8, Global>, Error>
fn copy(&self, addr: usize, length: usize) -> Result<Vec<u8, Global>, Error>
Copies a series of bytes from another process. Main difference
with ‘read’ is that this will allocate memory for you
source§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