LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_PE_IMPORT_ENTRY_H
17#define LIEF_PE_IMPORT_ENTRY_H
43 ImportEntry(uint64_t data, PE_TYPE type,
const std::string& name);
47 ImportEntry&
operator=(
const ImportEntry&) =
default;
59 static constexpr auto MASK = 0xFFFF;
60 return is_ordinal() ? (data_ & MASK) : 0;
67 uint16_t
hint()
const {
79 uint64_t
data()
const {
94 void accept(Visitor& visitor)
const override;
102 uint64_t iat_value_ = 0;
104 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:90
uint16_t ordinal() const
The ordinal value.
Definition ImportEntry.hpp:58
~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:76
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:70
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:64
ImportEntry & operator=(const ImportEntry &)=default
uint64_t data() const
Raw value.
Definition ImportEntry.hpp:81
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:86
std::string demangled_name() const
Demangled representation of the symbol or an empty string if it can't be demangled.
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:47
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
PE_TYPE
Definition PE/enums.hpp:680
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41