16#ifndef LIEF_PE_DATADIRECTORY_H
17#define LIEF_PE_DATADIRECTORY_H
34struct pe_data_directory;
45 static constexpr size_t DEFAULT_NB = 16;
53 BASE_RELOCATION_TABLE,
61 DELAY_IMPORT_DESCRIPTOR,
84 uint32_t
RVA()
const {
96 return section_ !=
nullptr;
127 TYPES type_ = TYPES::UNKNOWN;
Class which represents a PE binary This is the main interface to manage and modify a PE executable.
Definition PE/Binary.hpp:52
Class that is used to rebuild a raw PE binary from a PE::Binary object.
Definition PE/Builder.hpp:45
Class that represents a PE data directory entry.
Definition DataDirectory.hpp:38
const Section * section() const
Definition DataDirectory.hpp:103
DataDirectory(TYPES type)
Definition DataDirectory.hpp:68
uint32_t RVA() const
The relative virtual address of the content of this data directory.
Definition DataDirectory.hpp:84
DataDirectory & operator=(DataDirectory &&other) noexcept=default
DataDirectory(const details::pe_data_directory &header, TYPES type)
~DataDirectory() override=default
DataDirectory(DataDirectory &&other) noexcept=default
bool has_section() const
Check if the content of this data directory is associated with a PE Cection.
Definition DataDirectory.hpp:95
void accept(Visitor &visitor) const override
void RVA(uint32_t rva)
Definition DataDirectory.hpp:116
void size(uint32_t size)
Definition DataDirectory.hpp:112
DataDirectory(const DataDirectory &other)=default
TYPES type() const
Type of the data directory.
Definition DataDirectory.hpp:108
TYPES
Definition DataDirectory.hpp:47
DataDirectory & operator=(const DataDirectory &other)=default
friend std::ostream & operator<<(std::ostream &os, const DataDirectory &entry)
Section * section()
Section associated with the DataDirectory.
Definition DataDirectory.hpp:100
uint32_t size() const
The size of the content.
Definition DataDirectory.hpp:89
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:47
Class which represents a PE section.
Definition PE/Section.hpp:40
Definition Visitor.hpp:224
const char * to_string(DataDirectory::TYPES e)
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41