LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This auxiliary symbol represents a filename (auxiliary format 4). More...
#include <AuxiliaryFile.hpp>
Public Member Functions | |
AuxiliaryFile () | |
AuxiliaryFile (std::string file) | |
AuxiliaryFile (const AuxiliaryFile &)=default | |
AuxiliaryFile & | operator= (const AuxiliaryFile &)=default |
AuxiliaryFile (AuxiliaryFile &&)=default | |
AuxiliaryFile & | operator= (AuxiliaryFile &&)=default |
std::unique_ptr< AuxiliarySymbol > | clone () const override |
const std::string & | filename () const |
The associated filename. | |
AuxiliaryFile & | filename (std::string file) |
std::string | to_string () const override |
~AuxiliaryFile () override=default | |
Public Member Functions inherited from LIEF::COFF::AuxiliarySymbol | |
AuxiliarySymbol ()=default | |
AuxiliarySymbol (std::vector< uint8_t > payload) | |
AuxiliarySymbol (const AuxiliarySymbol &)=default | |
AuxiliarySymbol & | operator= (const AuxiliarySymbol &)=default |
AuxiliarySymbol (AuxiliarySymbol &&)=default | |
AuxiliarySymbol & | operator= (AuxiliarySymbol &&)=default |
AuxiliarySymbol (TYPE ty) | |
TYPE | type () const |
span< const uint8_t > | payload () const |
For unknown type only, return the raw representation of this symbol. | |
span< uint8_t > | payload () |
virtual | ~AuxiliarySymbol ()=default |
template<class T> | |
const T * | as () const |
Helper to downcast a AuxiliarySymbol into a concrete implementation. | |
template<class T> | |
T * | as () |
Static Public Member Functions | |
static std::unique_ptr< AuxiliaryFile > | parse (const std::vector< uint8_t > &payload) |
static bool | classof (const AuxiliarySymbol *sym) |
Static Public Member Functions inherited from LIEF::COFF::AuxiliarySymbol | |
static std::unique_ptr< AuxiliarySymbol > | parse (Symbol &sym, std::vector< uint8_t > payload) |
static TYPE | get_aux_type (const Symbol &sym) |
Additional Inherited Members | |
Public Types inherited from LIEF::COFF::AuxiliarySymbol | |
enum class | TYPE { UNKNOWN = 0 , CLR_TOKEN , FUNC_DEF , BF_AND_EF , WEAK_EXTERNAL , FILE , SEC_DEF } |
Type discriminator for the subclasses. More... |
This auxiliary symbol represents a filename (auxiliary format 4).
The Symbol::name itself should start with .file, and this auxiliary record gives the name of a source-code file.
Reference: https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#auxiliary-format-4-files
|
inline |
References LIEF::COFF::AuxiliarySymbol::AuxiliarySymbol(), and LIEF::COFF::AuxiliarySymbol::FILE.
Referenced by AuxiliaryFile(), AuxiliaryFile(), clone(), filename(), operator=(), and operator=().
|
inline |
|
default |
References AuxiliaryFile().
|
default |
References AuxiliaryFile().
|
overridedefault |
|
inlinestatic |
|
inlineoverridevirtual |
Reimplemented from LIEF::COFF::AuxiliarySymbol.
References AuxiliaryFile().
|
inline |
The associated filename.
|
inline |
References AuxiliaryFile().
|
default |
References AuxiliaryFile().
|
default |
References AuxiliaryFile().
|
static |
References LIEF::COFF::AuxiliarySymbol::payload().
|
inlineoverridevirtual |
Reimplemented from LIEF::COFF::AuxiliarySymbol.