LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::PE::Factory Class Reference

This factory is used to create PE from scratch. More...

#include <Factory.hpp>

Public Member Functions

 Factory (const Factory &)=delete
 
Factoryoperator= (const Factory &)=delete
 
 Factory (Factory &&)
 
Factoryoperator= (Factory &&)
 
Factoryadd_section (const Section &section)
 
Factoryset_arch (Header::MACHINE_TYPES arch)
 
Factoryset_entrypoint (uint64_t ep)
 
std::unique_ptr< Binaryget ()
 
bool is_32bit () const
 
bool is_64bit () const
 
uint32_t section_align () const
 
uint32_t file_align () const
 
 ~Factory ()
 

Static Public Member Functions

static std::unique_ptr< Factorycreate (PE_TYPE type)
 Initiate the factory to construct a PE which the given type.
 

Detailed Description

This factory is used to create PE from scratch.

Constructor & Destructor Documentation

◆ Factory() [1/2]

LIEF::PE::Factory::Factory ( const Factory & )
delete

◆ Factory() [2/2]

LIEF::PE::Factory::Factory ( Factory && )

◆ ~Factory()

LIEF::PE::Factory::~Factory ( )

Member Function Documentation

◆ add_section()

Factory & LIEF::PE::Factory::add_section ( const Section & section)
inline

◆ create()

static std::unique_ptr< Factory > LIEF::PE::Factory::create ( PE_TYPE type)
static

Initiate the factory to construct a PE which the given type.

◆ file_align()

uint32_t LIEF::PE::Factory::file_align ( ) const
inline

◆ get()

std::unique_ptr< Binary > LIEF::PE::Factory::get ( )
inline

◆ is_32bit()

bool LIEF::PE::Factory::is_32bit ( ) const
inline

◆ is_64bit()

bool LIEF::PE::Factory::is_64bit ( ) const
inline

◆ operator=() [1/2]

Factory & LIEF::PE::Factory::operator= ( const Factory & )
delete

◆ operator=() [2/2]

Factory & LIEF::PE::Factory::operator= ( Factory && )

◆ section_align()

uint32_t LIEF::PE::Factory::section_align ( ) const
inline

◆ set_arch()

Factory & LIEF::PE::Factory::set_arch ( Header::MACHINE_TYPES arch)
inline

◆ set_entrypoint()

Factory & LIEF::PE::Factory::set_entrypoint ( uint64_t ep)
inline

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