MemoryReadPid

Trait MemoryReadPid 

Source
pub trait MemoryReadPid: GetContext {
    // Required method
    fn try_read_bytes_into_pid(
        &self,
        ctx: &Self::Context,
        address: u64,
        buffer: &mut [u8],
    ) -> Option<()>;
}
Expand description

A trait that mirrors the MemoryRead trait but reads from a PID instead of directly from the implementor. Note that the Pid type is not necessarily a Windows process ID. One may implement this using another form of identifier such as a dirbase.

Required Methods§

Source

fn try_read_bytes_into_pid( &self, ctx: &Self::Context, address: u64, buffer: &mut [u8], ) -> Option<()>

Reads memory from the process with the given PID.

Implementors§