16#ifndef LIEF_PE_IMPORT_ENTRY_H
17#define LIEF_PE_IMPORT_ENTRY_H
55 static constexpr auto MASK = 0xFFFF;
56 return is_ordinal() ? (data_ & MASK) : 0;
98 uint64_t iat_value_ = 0;
100 PE_TYPE type_ = PE_TYPE::PE32_PLUS;
Class that is used to rebuild a raw PE binary from a PE::Binary object.
Definition PE/Builder.hpp:45
Class that represents an entry (i.e. an import) in the import table (Import).
Definition ImportEntry.hpp:36
ImportEntry(const std::string &name, PE_TYPE type)
void data(uint64_t data)
Definition ImportEntry.hpp:86
uint16_t ordinal() const
The ordinal value.
Definition ImportEntry.hpp:54
~ImportEntry() override=default
uint64_t iat_value() const
Value of the current entry in the Import Address Table. It should match the lookup table value.
Definition ImportEntry.hpp:72
ImportEntry(const ImportEntry &)=default
uint16_t hint() const
Index into the Export::entries that is used to speed-up the symbol resolution.
Definition ImportEntry.hpp:66
void accept(Visitor &visitor) const override
friend std::ostream & operator<<(std::ostream &os, const ImportEntry &entry)
uint64_t hint_name_rva() const
Definition ImportEntry.hpp:60
ImportEntry & operator=(const ImportEntry &)=default
uint64_t data() const
Raw value.
Definition ImportEntry.hpp:77
bool is_ordinal() const
True if it is an import by ordinal
ImportEntry(uint64_t data, const std::string &name="")
ImportEntry(const std::string &name)
ImportEntry(uint64_t data, PE_TYPE type, const std::string &name)
uint64_t iat_address() const
Original address of the entry in the Import Address Table
Definition ImportEntry.hpp:82
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:47
This class represents a symbol in an executable format.
Definition Abstract/Symbol.hpp:28
Definition Visitor.hpp:224
PE_TYPE
Definition PE/enums.hpp:680
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41