| 156 | } |
| 157 | |
| 158 | std::optional<uint64_t> CacheEntry::GetMappedAddress(uint64_t fileOffset) const |
| 159 | { |
| 160 | for (const auto& mapping : m_mappings) |
| 161 | if (mapping.fileOffset <= fileOffset && mapping.fileOffset + mapping.size > fileOffset) |
| 162 | return mapping.address + (fileOffset - mapping.fileOffset); |
| 163 | return std::nullopt; |
| 164 | } |
| 165 | |
| 166 | SharedCache::SharedCache(uint64_t addressSize) |
| 167 | { |
no outgoing calls
no test coverage detected