LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
LIEF::PE::DataDirectory Class Reference

Class that represents a PE data directory entry. More...

#include <DataDirectory.hpp>

Inheritance diagram for LIEF::PE::DataDirectory:
Inheritance graph
[legend]
Collaboration diagram for LIEF::PE::DataDirectory:
Collaboration graph
[legend]

Public Types

enum class  TYPES : size_t {
  EXPORT_TABLE = 0 , IMPORT_TABLE , RESOURCE_TABLE , EXCEPTION_TABLE ,
  CERTIFICATE_TABLE , BASE_RELOCATION_TABLE , DEBUG , ARCHITECTURE ,
  GLOBAL_PTR , TLS_TABLE , LOAD_CONFIG_TABLE , BOUND_IMPORT ,
  IAT , DELAY_IMPORT_DESCRIPTOR , CLR_RUNTIME_HEADER , RESERVED ,
  UNKNOWN
}
 
- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Public Member Functions

 DataDirectory (TYPES type)
 
 DataDirectory (const details::pe_data_directory &header, TYPES type)
 
 DataDirectory (const DataDirectory &other)
 
DataDirectoryoperator= (const DataDirectory &other)
 
 DataDirectory (DataDirectory &&other)
 
DataDirectoryoperator= (DataDirectory &&other)
 
uint32_t RVA () const
 The relative virtual address of the content of this data directory.
 
uint32_t size () const
 The size of the content.
 
bool has_section () const
 Check if the content of this data directory is associated with a PE Cection.
 
Sectionsection ()
 Section associated with the DataDirectory.
 
const Sectionsection () const
 
TYPES type () const
 Type of the data directory.
 
void size (uint32_t size)
 
void RVA (uint32_t rva)
 
void accept (Visitor &visitor) const override
 
- Public Member Functions inherited from LIEF::Object
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 

Static Public Attributes

static constexpr size_t DEFAULT_NB = 16
 

Detailed Description

Class that represents a PE data directory entry.

Member Function Documentation

◆ accept()

void LIEF::PE::DataDirectory::accept ( Visitor & visitor) const
overridevirtual

Implements LIEF::Object.


The documentation for this class was generated from the following file: