BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
DataDirWrapper.h
Go to the documentation of this file.
1#pragma once
2
3#include "PENodeWrapper.h"
4
6{
7public:
14
16 virtual size_t getSubFieldsCount() { return COUNTER; }
17
18 /* full structure boundaries */
19 virtual void* getPtr();
20 virtual bufsize_t getSize();
21 virtual QString getName() { return "Data Directory"; }
22 virtual size_t getFieldsCount() { return getDirsCount(); }
23
24 /* specific field boundaries */
25 virtual void* getFieldPtr(size_t fieldId, size_t subField);
26 virtual bufsize_t getFieldSize(size_t fieldId, size_t subField);
27 virtual QString getFieldName(size_t fieldId);
28 virtual Executable::addr_type containsAddrType(size_t fieldId, size_t subField = FIELD_NONE);
29
30 /*specific to this wrapper*/
31 size_t getDirsCount();
32};
uint32_t bufsize_t
#define FIELD_NONE
virtual QString getFieldName(size_t fieldId)
virtual bufsize_t getFieldSize(size_t fieldId, size_t subField)
virtual size_t getFieldsCount()
virtual QString getName()
DataDirWrapper(PEFile *pe)
virtual Executable::addr_type containsAddrType(size_t fieldId, size_t subField=FIELD_NONE)
virtual void * getPtr()
virtual size_t getSubFieldsCount()
virtual bufsize_t getSize()
virtual void * getFieldPtr(size_t fieldId, size_t subField)