class ProcessMemory
Defined at line 35 of file ../../third_party/crashpad/src/util/process/process_memory.h
Abstract base class for accessing the memory of another process.
Implementations are platform-specific.
Public Methods
bool Read (VMAddress address, VMSize size, void * buffer)
Copies memory from the target process into a caller-provided buffer
in the current process.
Parameters
Returns
`true` on success, with
filled appropriately. `false` on
failure, with a message logged.
bool ReadCString (VMAddress address, std::string * string)
Reads a `NUL`-terminated C string from the target process into a
string in the current process.
The length of the string need not be known ahead of time. This method will
read contiguous memory until a `NUL` terminator is found.
Parameters
Returns
`true` on success, with
set appropriately. `false` on
failure, with a message logged. Failures can occur, for example, when
encountering unmapped or unreadable pages.
Defined at line 64 of file ../../third_party/crashpad/src/util/process/process_memory.h
bool ReadCStringSizeLimited (VMAddress address, VMSize size, std::string * string)
Reads a `NUL`-terminated C string from the target process into a
string in the current process.
Parameters
Returns
`true` on success, with
set appropriately. `false` on
failure, with a message logged. Failures can occur, for example, when
a `NUL` terminator is not found within
bytes, or when
encountering unmapped or unreadable pages.
Defined at line 81 of file ../../third_party/crashpad/src/util/process/process_memory.h
void ~ProcessMemory ()
Defined at line 87 of file ../../third_party/crashpad/src/util/process/process_memory.h
Protected Methods
void ProcessMemory ()
Defined at line 90 of file ../../third_party/crashpad/src/util/process/process_memory.h
Friends
class ProcessMemorySanitized