11 if (entry->
getPtr() == NULL) {
18 if (!isOk || val == 0) {
37 if (
getPtr() == NULL)
return 0;
39 return sizeof(IMAGE_TLS_DIRECTORY32);
41 return sizeof(IMAGE_TLS_DIRECTORY64);
44void* TlsDirWrapper::getTlsDirPtr()
49 dirSize =
sizeof(IMAGE_TLS_DIRECTORY32);
51 dirSize =
sizeof(IMAGE_TLS_DIRECTORY64);
59IMAGE_TLS_DIRECTORY32* TlsDirWrapper::tls32()
62 return (IMAGE_TLS_DIRECTORY32*) getTlsDirPtr();
65IMAGE_TLS_DIRECTORY64* TlsDirWrapper::tls64()
68 return (IMAGE_TLS_DIRECTORY64*) getTlsDirPtr();
73 IMAGE_TLS_DIRECTORY32* t32 = tls32();
74 IMAGE_TLS_DIRECTORY64* t64 = tls64();
76 if (t32 == NULL && t64 == NULL)
return NULL;
79 case START_ADDR :
return t32 ? (
void*) &t32->StartAddressOfRawData : (
void*) &t64->StartAddressOfRawData;
80 case END_ADDR :
return t32 ? (
void*) &t32->EndAddressOfRawData : (
void*) &t64->EndAddressOfRawData;
81 case INDEX_ADDR :
return t32 ? (
void*) &t32->AddressOfIndex : (
void*) &t64->AddressOfIndex;
82 case CALLBACKS_ADDR :
return t32 ? (
void*) &t32->AddressOfCallBacks : (
void*) &t64->AddressOfCallBacks;
83 case ZEROF_SIZE :
return t32 ? (
void*) &t32->SizeOfZeroFill : (
void*) &t64->SizeOfZeroFill;
84 case CHARACT :
return t32 ? (
void*) &t32->Characteristics : (
void*) &t64->Characteristics;
92 case START_ADDR :
return "StartAddressOfRawData";
93 case END_ADDR :
return "EndAddressOfRawData";
97 case CHARACT :
return "Characteristics";
117 if (this->parentDir == NULL)
return NULL;
121 if (!isOk)
return NULL;
136 if (this->parentDir == NULL)
return 0;
const offset_t INVALID_ADDR
offset_t getDirEntryAddress()
virtual bufsize_t getFieldSize(size_t fieldId, size_t subField=FIELD_NONE)
virtual uint64_t getNumValue(size_t fieldId, size_t subField, bool *isOk)
std::vector< ExeNodeWrapper * > entries
virtual exe_bits getBitMode()
virtual offset_t toRaw(offset_t offset, addr_type addrType, bool allowExceptions=false)
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
virtual QString getName()
virtual bufsize_t getSize()
virtual void * getFieldPtr(size_t fieldId, size_t subField)
virtual QString getFieldName(size_t fieldId)
virtual Executable::addr_type containsAddrType(size_t fieldId, size_t subField=FIELD_NONE)
virtual bufsize_t getSize()