| 56 | } |
| 57 | |
| 58 | std::string VirtualMemory::ReadCString(uint64_t address) |
| 59 | { |
| 60 | uint64_t offset; |
| 61 | auto region = GetRegionAtAddress(address, offset); |
| 62 | if (!region.has_value()) |
| 63 | throw UnmappedRegionException(address); |
| 64 | return region->fileAccessor.lock()->ReadNullTermString(offset); |
| 65 | } |
| 66 | |
| 67 | uint8_t VirtualMemory::ReadUInt8(uint64_t address) |
| 68 | { |
nothing calls this directly
no test coverage detected