| 4 | #include "Utility.h" |
| 5 | |
| 6 | class UnmappedRegionException : public std::exception |
| 7 | { |
| 8 | uint64_t m_address; |
| 9 | |
| 10 | public: |
| 11 | explicit UnmappedRegionException(uint64_t address) : m_address(address) {} |
| 12 | |
| 13 | virtual const char* what() const throw() |
| 14 | { |
| 15 | thread_local std::string message; |
| 16 | message = fmt::format("Tried to access unmapped region using address {0:x}", m_address); |
| 17 | return message.c_str(); |
| 18 | } |
| 19 | }; |
| 20 | |
| 21 | // A region within the virtual memory |
| 22 | struct VirtualMemoryRegion |
no outgoing calls
no test coverage detected