| 137 | } |
| 138 | |
| 139 | BinaryNinja::DataBuffer VirtualMemory::ReadBuffer(uint64_t address, size_t length) |
| 140 | { |
| 141 | uint64_t offset; |
| 142 | auto region = GetRegionAtAddress(address, offset); |
| 143 | if (!region.has_value()) |
| 144 | throw UnmappedRegionException(address); |
| 145 | return region->fileAccessor.lock()->ReadBuffer(offset, length); |
| 146 | } |
| 147 | |
| 148 | std::pair<const uint8_t*, const uint8_t*> VirtualMemory::ReadSpan(size_t address, size_t length) |
| 149 | { |
no test coverage detected