/** @brief Restore a region from a snapshot */
void restore();
- /** @brief Read memory that was snapshoted in this region
+ /** @brief Read memory that was snapshotted in this region
*
* @param target Buffer to store contiguously the value if it spans over several pages
* @param addr Process (non-snapshot) address of the data
* @param size Size of the data to read in bytes
* @return Pointer where the data is located (either target buffer or original location)
*/
- const void* read(void* target, const void* addr, std::size_t size);
+ void* read(void* target, const void* addr, std::size_t size);
};
} // namespace mc