MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / GetMappedAddress

Method GetMappedAddress

view/sharedcache/core/SharedCache.cpp:158–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158std::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
166SharedCache::SharedCache(uint64_t addressSize)
167{

Callers 2

ApplyHeaderMethod · 0.80
ProcessEntrySlideInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected