#include "components/zucchini/address_translator.h"
#include <algorithm>
#include <utility>
#include <vector>
namespace zucchini {
AddressTranslator::OffsetToRvaCache::OffsetToRvaCache(
const AddressTranslator& translator)
: … { … }
rva_t AddressTranslator::OffsetToRvaCache::Convert(offset_t offset) const { … }
AddressTranslator::RvaToOffsetCache::RvaToOffsetCache(
const AddressTranslator& translator)
: … { … }
bool AddressTranslator::RvaToOffsetCache::IsValid(rva_t rva) const { … }
offset_t AddressTranslator::RvaToOffsetCache::Convert(rva_t rva) const { … }
AddressTranslator::AddressTranslator() = default;
AddressTranslator::AddressTranslator(AddressTranslator&&) = default;
AddressTranslator::~AddressTranslator() = default;
AddressTranslator::Status AddressTranslator::Initialize(
std::vector<Unit>&& units) { … }
rva_t AddressTranslator::OffsetToRva(offset_t offset) const { … }
offset_t AddressTranslator::RvaToOffset(rva_t rva) const { … }
const AddressTranslator::Unit* AddressTranslator::OffsetToUnit(
offset_t offset) const { … }
const AddressTranslator::Unit* AddressTranslator::RvaToUnit(rva_t rva) const { … }
}