| 146 | } |
| 147 | |
| 148 | std::pair<const uint8_t*, const uint8_t*> VirtualMemory::ReadSpan(size_t address, size_t length) |
| 149 | { |
| 150 | uint64_t offset; |
| 151 | auto region = GetRegionAtAddress(address, offset); |
| 152 | if (!region.has_value()) |
| 153 | throw UnmappedRegionException(address); |
| 154 | return region->fileAccessor.lock()->ReadSpan(offset, length); |
| 155 | } |
| 156 | |
| 157 | void VirtualMemory::Read(void* dest, uint64_t address, size_t length) |
| 158 | { |
no test coverage detected