51 this->parsedSize +=
val;
78 if (!reloc)
return false;
80 size_t maxSize = reloc->SizeOfBlock;
87 if (!
entry->getPtr()) {
91 this->parsedSize +=
sizeof(pe::BASE_RELOCATION_ENTRY);
100 if (this->parentDir ==
NULL)
return NULL;
102 if (!reloc)
return NULL;
127 this->cachedRaw =
raw;
143 if (!ptr)
return NULL;
149 this->cachedRaw =
raw;
155 if (this->parentDir ==
NULL)
return 0;
157 if (!reloc)
return 0;
159 if (reloc->SizeOfBlock > 0)
return reloc->SizeOfBlock;
167 if (!reloc)
return NULL;
170 case PAGE_VA:
return (
void*) &reloc->VirtualAddress;
171 case BLOCK_SIZE :
return (
void*) &reloc->SizeOfBlock;
185 case PAGE_VA:
return "Page RVA";
223 if (this->cachedMaxNum > 0)
return this->cachedMaxNum;
226 if (!reloc)
return 0;
249 if (this->parentDir ==
NULL)
return NULL;
263 if (this->parentDir ==
NULL)
return 0;
276 return entry->Offset;
282 case 0 :
return "Padding (skipped)";
283 case 1 :
return "High WORD of 32-bit field";
284 case 2 :
return "Low WORD of 32-bit field";
285 case 3 :
return "32 bit field";
286 case 4 :
return "HighAdj";
287 case 5 :
return "MIPS JumpAddr";
288 case 6 :
case 7 :
return "Reserved";
289 case 9 :
return "MIPS16 JumpAddr";
290 case 10 :
return "64 bit field";
INT_TYPE _getNumValue(void *ptr)
const offset_t INVALID_ADDR
bufsize_t getDirEntrySize(bool trimToExeSize=false)
offset_t getDirEntryAddress()
virtual bufsize_t getFieldSize(size_t fieldId, size_t subField=FIELD_NONE)
virtual offset_t getFieldOffset(size_t fieldId, size_t subField=FIELD_NONE)
virtual offset_t getOffset()
virtual ExeNodeWrapper * getEntryAt(size_t fieldId)
std::vector< ExeNodeWrapper * > entries
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
virtual offset_t getRawSize() const
virtual QString getFieldName(size_t fieldId)
virtual WrappedValue::data_type containsDataType(size_t fieldId, size_t subField)
virtual void * getFieldPtr(size_t fieldId, size_t subField=FIELD_NONE)
virtual QString getName()
virtual bufsize_t getSize()
size_t maxEntriesNumInBlock()
virtual Executable::addr_type containsAddrType(size_t fieldId, size_t subField)
IMAGE_BASE_RELOCATION * myReloc()
friend class RelocBlockWrapper
IMAGE_BASE_RELOCATION * reloc()
offset_t deltaToRVA(WORD delta)
static QString translateType(WORD type)
virtual bufsize_t getSize()
static WORD getDelta(WORD relocEntryVal)
static WORD getType(WORD relocEntryVal)