Index: snapshot/win/process_reader_win.h |
diff --git a/snapshot/win/process_reader_win.h b/snapshot/win/process_reader_win.h |
index 64181891f5232b4d7d0719abe64029f0fbf4bd5e..636b0ac97fe3d73bad235872b65a21290fbb7784 100644 |
--- a/snapshot/win/process_reader_win.h |
+++ b/snapshot/win/process_reader_win.h |
@@ -86,8 +86,26 @@ class ProcessReaderWin { |
//! \return `true` if the target task is a 64-bit process. |
bool Is64Bit() const { return process_info_.Is64Bit(); } |
+ //! \brief Attempts to read \a num_bytes bytes from the target process |
+ //! starting at address \a at into \a into. |
+ //! |
+ //! \return `true` if the entire region could be read, or `false` with an |
+ //! error logged. |
+ //! |
+ //! \sa ReadAvailableMemory |
bool ReadMemory(WinVMAddress at, WinVMSize num_bytes, void* into) const; |
+ //! \brief Attempts to read \a num_bytes bytes from the target process |
+ //! starting at address \a at into \a into. If some of the specified range |
+ //! is not accessible, reads up to the first inaccessible byte. |
+ //! |
+ //! \return The actual number of bytes read. |
+ //! |
+ //! \sa ReadMemory |
+ WinVMSize ReadAvailableMemory(WinVMAddress at, |
+ WinVMSize num_bytes, |
+ void* into) const; |
+ |
//! \brief Determines the target process' start time. |
//! |
//! \param[out] start_time The time that the process started. |