BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
ExportEntryWrapper Class Reference

#include <ExportDirWrapper.h>

Collaboration diagram for ExportEntryWrapper:

Public Types

enum  FieldID { NONE = FIELD_NONE , FUNCTION_RVA , NAME_RVA , FIELD_COUNTER }
 

Public Member Functions

 ExportEntryWrapper (Executable *pe, ExportDirWrapper *parentDir, size_t entryNumber)
 
virtual void * getPtr ()
 
virtual bufsize_t getSize ()
 
virtual QString getName ()
 
virtual size_t getFieldsCount ()
 
virtual size_t getSubFieldsCount ()
 
virtual void * getFieldPtr (size_t fieldId, size_t subField=FIELD_NONE)
 
virtual bufsize_t getFieldSize (size_t fieldId, size_t subField=FIELD_NONE)
 
virtual QString getFieldName (size_t fieldId)
 
virtual Executable::addr_type containsAddrType (size_t fieldId, size_t subField)
 
bool isByOrdinal ()
 
uint32_t getOrdinal ()
 
offset_t getFuncRva ()
 
offset_t getFuncNameRva ()
 
char * getFuncName ()
 
QString getuncNameStr ()
 
char * getForwarder ()
 
QString getForwarderStr ()
 
- Public Member Functions inherited from ExeNodeWrapper
 ExeNodeWrapper (Executable *pe, ExeNodeWrapper *parent=NULL)
 
 ExeNodeWrapper (Executable *pe, ExeNodeWrapper *parent, size_t entryNumber)
 
virtual ~ExeNodeWrapper ()
 
virtual bool wrap ()
 
virtual void reloadMapping ()
 
virtual ExeNodeWrappergetEntryAt (size_t fieldId)
 
virtual size_t getEntriesCount ()
 
virtual size_t getEntriesNum ()
 
virtual ExeNodeWrappergetParentNode ()
 
size_t getEntryId ()
 
virtual void * getSubfieldPtr (size_t fieldId, size_t subField)
 
virtual bufsize_t getSubfieldSize (size_t fieldId, size_t subField)
 
virtual QString getSubfieldName (size_t fieldId, size_t subField)
 
virtual bool canAddEntry ()
 
virtual ExeNodeWrapperaddEntry (ExeNodeWrapper *entry)
 
ExeNodeWrappergetLastEntry ()
 
virtual offset_t getNextEntryOffset ()
 
virtual bufsize_t geEntrySize ()
 
virtual bool isValid ()
 
- Public Member Functions inherited from ExeElementWrapper
 ExeElementWrapper (Executable *exe)
 
virtual ~ExeElementWrapper ()
 
virtual bufsize_t getContentSize ()
 
virtual BYTE * getContent ()
 
virtual offset_t getOffset ()
 
virtual offset_t getOffset (void *ptr, bool allowExceptions=false)
 
void * getFieldPtr (size_t fieldId)
 
virtual offset_t getFieldOffset (size_t fieldId, size_t subField=FIELD_NONE)
 
virtual QString translateFieldContent (size_t fieldId)
 
virtual bool hasSubfieldWrapper (size_t parentType)
 
virtual WrappedValue getWrappedValue (size_t fieldId, size_t subField)
 
virtual WrappedValue getWrappedValue (size_t fieldId)
 
virtual WrappedValue::data_type containsDataType (size_t fieldId, size_t subField=FIELD_NONE)
 
virtual uint64_t getNumValue (size_t fieldId, size_t subField, bool *isOk)
 
uint64_t getNumValue (size_t fieldId, bool *isOk)
 
virtual bool setNumValue (size_t fieldId, size_t subField, uint64_t val)
 
bool setNumValue (size_t fieldId, uint64_t val)
 
ExecutablegetExe ()
 
bool isBit64 ()
 
bool isBit32 ()
 
- Public Member Functions inherited from AbstractByteBuffer
 AbstractByteBuffer ()
 
virtual ~AbstractByteBuffer ()
 
virtual bool isTruncated ()
 
virtual bool isResized ()
 
BYTE operator[] (size_t idx)
 
virtual BYTE * getContentAt (offset_t offset, bufsize_t size, bool allowExceptions=false)
 
virtual BYTE * getContentAtPtr (BYTE *ptr, bufsize_t size, bool allowExceptions=false)
 
virtual bool setBufferedValue (BYTE *dstPtr, BYTE *srcPtr, bufsize_t srcSize, bufsize_t paddingSize, bool allowExceptions=false)
 
bool setStringValue (offset_t rawOffset, QString newText)
 
QString getStringValue (offset_t rawOffset, bufsize_t len=BUFSIZE_MAX, bool acceptNonTerminated=false)
 
QString getWStringValue (offset_t rawOffset, bufsize_t len)
 
QString getWAsciiStringValue (offset_t rawOffset, bufsize_t len, bool acceptNonTerminated=false)
 
bufsize_t getMaxSizeFromOffset (offset_t startOffset)
 
bufsize_t getMaxSizeFromPtr (BYTE *ptr)
 
bool isAreaEmpty (offset_t rawOffset, bufsize_t size)
 
bool fillContent (BYTE filling)
 
bool pasteBuffer (offset_t rawOffset, AbstractByteBuffer *buf, bool allowTrunc)
 
bool containsBlock (offset_t rawOffset, bufsize_t size)
 
bool intersectsBlock (offset_t rawOffset, bufsize_t size)
 
uint64_t getNumValue (offset_t offset, bufsize_t size, bool *isOk)
 
bool setNumValue (offset_t offset, bufsize_t size, uint64_t newVal)
 
bool setTextValue (char *textPtr, std::string newText, size_t fieldLimitLen=0)
 
virtual bool resize (bufsize_t newSize)
 
offset_t substFragmentByFile (offset_t offset, bufsize_t contentSize, QFile &fIn)
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractByteBuffer
static bool isValid (AbstractByteBuffer *buf)
 
- Protected Member Functions inherited from ExeNodeWrapper
size_t getEntriesCount (std::vector< ExeNodeWrapper * > &_entries)
 
ExeNodeWrappergetEntryAt (std::vector< ExeNodeWrapper * > &_entries, size_t fieldId)
 
virtual void clear ()
 
virtual void addMapping (ExeNodeWrapper *entry)
 
virtual bool loadNextEntry (size_t entryNum)
 
virtual ExeNodeWrapperaddEntryAt (ExeNodeWrapper *entry, offset_t nextOffset)
 
virtual bool isMyEntryType (ExeNodeWrapper *entry)
 
- Protected Member Functions inherited from ExeElementWrapper
virtual bool canCopyToOffset (offset_t rawOffset)
 
bool copyToOffset (offset_t rawOffset)
 
- Protected Attributes inherited from ExeNodeWrapper
ExeNodeWrapperparentNode
 
size_t entryNum
 
std::vector< ExeNodeWrapper * > entries
 
- Protected Attributes inherited from ExeElementWrapper
Executablem_Exe
 

Detailed Description

Definition at line 54 of file ExportDirWrapper.h.

Member Enumeration Documentation

◆ FieldID

Enumerator
NONE 
FUNCTION_RVA 
NAME_RVA 
FIELD_COUNTER 

Definition at line 58 of file ExportDirWrapper.h.

Constructor & Destructor Documentation

◆ ExportEntryWrapper()

ExportEntryWrapper::ExportEntryWrapper ( Executable * pe,
ExportDirWrapper * parentDir,
size_t entryNumber )
inline

Definition at line 65 of file ExportDirWrapper.h.

Member Function Documentation

◆ containsAddrType()

virtual Executable::addr_type ExportEntryWrapper::containsAddrType ( size_t fieldId,
size_t subField )
inlinevirtual

Reimplemented from ExeElementWrapper.

Definition at line 81 of file ExportDirWrapper.h.

◆ getFieldName()

QString ExportEntryWrapper::getFieldName ( size_t fieldId)
virtual

Implements ExeNodeWrapper.

Definition at line 233 of file ExportDirWrapper.cpp.

◆ getFieldPtr()

void * ExportEntryWrapper::getFieldPtr ( size_t fieldId,
size_t subField = FIELD_NONE )
virtual

Implements ExeElementWrapper.

Definition at line 184 of file ExportDirWrapper.cpp.

Here is the call graph for this function:

◆ getFieldsCount()

virtual size_t ExportEntryWrapper::getFieldsCount ( )
inlinevirtual

Implements ExeElementWrapper.

Definition at line 73 of file ExportDirWrapper.h.

◆ getFieldSize()

virtual bufsize_t ExportEntryWrapper::getFieldSize ( size_t fieldId,
size_t subField = FIELD_NONE )
inlinevirtual

Reimplemented from ExeElementWrapper.

Definition at line 78 of file ExportDirWrapper.h.

◆ getForwarder()

char * ExportEntryWrapper::getForwarder ( )

Definition at line 306 of file ExportDirWrapper.cpp.

Here is the call graph for this function:

◆ getForwarderStr()

QString ExportEntryWrapper::getForwarderStr ( )
inline

Definition at line 92 of file ExportDirWrapper.h.

Here is the call graph for this function:

◆ getFuncName()

char * ExportEntryWrapper::getFuncName ( )

Definition at line 295 of file ExportDirWrapper.cpp.

Here is the call graph for this function:

◆ getFuncNameRva()

offset_t ExportEntryWrapper::getFuncNameRva ( )

Definition at line 287 of file ExportDirWrapper.cpp.

◆ getFuncRva()

offset_t ExportEntryWrapper::getFuncRva ( )

Definition at line 242 of file ExportDirWrapper.cpp.

◆ getName()

QString ExportEntryWrapper::getName ( )
virtual

Implements ExeElementWrapper.

Definition at line 220 of file ExportDirWrapper.cpp.

Here is the call graph for this function:

◆ getOrdinal()

uint32_t ExportEntryWrapper::getOrdinal ( )

Definition at line 250 of file ExportDirWrapper.cpp.

Here is the call graph for this function:

◆ getPtr()

virtual void * ExportEntryWrapper::getPtr ( )
inlinevirtual

Implements ExeElementWrapper.

Definition at line 69 of file ExportDirWrapper.h.

◆ getSize()

bufsize_t ExportEntryWrapper::getSize ( )
virtual

Implements ExeElementWrapper.

Definition at line 206 of file ExportDirWrapper.cpp.

Here is the call graph for this function:

◆ getSubFieldsCount()

virtual size_t ExportEntryWrapper::getSubFieldsCount ( )
inlinevirtual

Reimplemented from ExeNodeWrapper.

Definition at line 74 of file ExportDirWrapper.h.

◆ getuncNameStr()

QString ExportEntryWrapper::getuncNameStr ( )
inline

Definition at line 90 of file ExportDirWrapper.h.

Here is the call graph for this function:

◆ isByOrdinal()

bool ExportEntryWrapper::isByOrdinal ( )

Definition at line 214 of file ExportDirWrapper.cpp.

Here is the call graph for this function:

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