retdec
include
retdec
fileformat
types
dotnet_headers
clr_header.h
Go to the documentation of this file.
1
7
#ifndef RETDEC_FILEFORMAT_TYPES_DOTNET_HEADERS_CLR_HEADER_H
8
#define RETDEC_FILEFORMAT_TYPES_DOTNET_HEADERS_CLR_HEADER_H
9
10
#include <cstdint>
11
12
namespace
retdec
{
13
namespace
fileformat
{
14
18
class
CLRHeader
19
{
20
private
:
21
std::uint64_t
headerSize
;
22
std::uint64_t
majorRuntimeVersion
;
23
std::uint64_t
minorRuntimeVersion
;
24
std::uint64_t
metadataDirectoryAddress
;
25
std::uint64_t
metadataDirectorySize
;
26
std::uint64_t
flags
;
27
std::uint64_t
entryPointToken
;
28
std::uint64_t
resourcesAddress
;
29
std::uint64_t
resourcesSize
;
30
std::uint64_t
strongNameSignatureAddress
;
31
std::uint64_t
strongNameSignatureSize
;
32
std::uint64_t
codeManagerTableAddress
;
33
std::uint64_t
codeManagerTableSize
;
34
std::uint64_t
vTableFixupsDirectoryAddress
;
35
std::uint64_t
vTableFixupsDirectorySize
;
36
std::uint64_t
exportAddressTableAddress
;
37
std::uint64_t
exportAddressTableSize
;
38
std::uint64_t
precompileHeaderAddress
;
39
std::uint64_t
precompileHeaderSize
;
40
public
:
43
std::uint64_t
getHeaderSize
()
const
;
44
std::uint64_t
getMajorRuntimeVersion
()
const
;
45
std::uint64_t
getMinorRuntimeVersion
()
const
;
46
std::uint64_t
getMetadataDirectoryAddress
()
const
;
47
std::uint64_t
getMetadataDirectorySize
()
const
;
48
std::uint64_t
getFlags
()
const
;
49
std::uint64_t
getEntryPointToken
()
const
;
50
std::uint64_t
getResourcesAddress
()
const
;
51
std::uint64_t
getResourcesSize
()
const
;
52
std::uint64_t
getStrongNameSignatureAddress
()
const
;
53
std::uint64_t
getStrongNameSignatureSize
()
const
;
54
std::uint64_t
getCodeManagerTableAddress
()
const
;
55
std::uint64_t
getCodeManagerTableSize
()
const
;
56
std::uint64_t
getVTableFixupsDirectoryAddress
()
const
;
57
std::uint64_t
getVTableFixupsDirectorySize
()
const
;
58
std::uint64_t
getExportAddressTableAddress
()
const
;
59
std::uint64_t
getExportAddressTableSize
()
const
;
60
std::uint64_t
getPrecompileHeaderAddress
()
const
;
61
std::uint64_t
getPrecompileHeaderSize
()
const
;
63
66
void
setHeaderSize
(std::uint64_t clrHeaderSize);
67
void
setMajorRuntimeVersion
(std::uint64_t clrMajorRuntimeVersion);
68
void
setMinorRuntimeVersion
(std::uint64_t clrMinorRuntimeVersion);
69
void
setMetadataDirectoryAddress
(std::uint64_t clrMetadataDirectoryAddress);
70
void
setMetadataDirectorySize
(std::uint64_t clrMetadataDirectorySize);
71
void
setFlags
(std::uint64_t clrFlags);
72
void
setEntryPointToken
(std::uint64_t clrEntryPointToken);
73
void
setResourcesAddress
(std::uint64_t clrResourcesAddress);
74
void
setResourcesSize
(std::uint64_t clrResourcesSize);
75
void
setStrongNameSignatureAddress
(std::uint64_t clrStrongNameSignatureAddress);
76
void
setStrongNameSignatureSize
(std::uint64_t clrStrongNameSignatureSize);
77
void
setCodeManagerTableAddress
(std::uint64_t clrCodeManagerTableAddress);
78
void
setCodeManagerTableSize
(std::uint64_t clrCodeManagerTableSize);
79
void
setVTableFixupsDirectoryAddress
(std::uint64_t clrVTableFixupsDirectoryAddress);
80
void
setVTableFixupsDirectorySize
(std::uint64_t clrVTableFixupsDirectorySize);
81
void
setExportAddressTableAddress
(std::uint64_t clrExportAddressTableAddress);
82
void
setExportAddressTableSize
(std::uint64_t clrExportAddressTableSize);
83
void
setPrecompileHeaderAddress
(std::uint64_t clrPrecompileHeaderAddress);
84
void
setPrecompileHeaderSize
(std::uint64_t clrPrecompileHeaderSize);
86
};
87
88
}
// namespace fileformat
89
}
// namespace retdec
90
91
#endif
retdec::fileformat::CLRHeader
Definition:
clr_header.h:19
retdec::fileformat::CLRHeader::getCodeManagerTableAddress
std::uint64_t getCodeManagerTableAddress() const
Definition:
clr_header.cpp:115
retdec::fileformat::CLRHeader::setCodeManagerTableAddress
void setCodeManagerTableAddress(std::uint64_t clrCodeManagerTableAddress)
Definition:
clr_header.cpp:286
retdec::fileformat::CLRHeader::setFlags
void setFlags(std::uint64_t clrFlags)
Definition:
clr_header.cpp:232
retdec::fileformat::CLRHeader::vTableFixupsDirectoryAddress
std::uint64_t vTableFixupsDirectoryAddress
Definition:
clr_header.h:34
retdec::fileformat::CLRHeader::getMinorRuntimeVersion
std::uint64_t getMinorRuntimeVersion() const
Definition:
clr_header.cpp:34
retdec::fileformat::CLRHeader::getPrecompileHeaderAddress
std::uint64_t getPrecompileHeaderAddress() const
Definition:
clr_header.cpp:169
retdec::fileformat::CLRHeader::getVTableFixupsDirectorySize
std::uint64_t getVTableFixupsDirectorySize() const
Definition:
clr_header.cpp:142
retdec::fileformat::CLRHeader::setStrongNameSignatureSize
void setStrongNameSignatureSize(std::uint64_t clrStrongNameSignatureSize)
Definition:
clr_header.cpp:277
retdec::fileformat::CLRHeader::getMajorRuntimeVersion
std::uint64_t getMajorRuntimeVersion() const
Definition:
clr_header.cpp:25
retdec::fileformat::CLRHeader::getExportAddressTableAddress
std::uint64_t getExportAddressTableAddress() const
Definition:
clr_header.cpp:151
retdec::fileformat::CLRHeader::getEntryPointToken
std::uint64_t getEntryPointToken() const
Definition:
clr_header.cpp:70
retdec::fileformat::CLRHeader::setMinorRuntimeVersion
void setMinorRuntimeVersion(std::uint64_t clrMinorRuntimeVersion)
Definition:
clr_header.cpp:205
retdec::fileformat::CLRHeader::getMetadataDirectoryAddress
std::uint64_t getMetadataDirectoryAddress() const
Definition:
clr_header.cpp:43
retdec::fileformat::CLRHeader::codeManagerTableAddress
std::uint64_t codeManagerTableAddress
Definition:
clr_header.h:32
retdec::fileformat::CLRHeader::getPrecompileHeaderSize
std::uint64_t getPrecompileHeaderSize() const
Definition:
clr_header.cpp:178
retdec::fileformat::CLRHeader::vTableFixupsDirectorySize
std::uint64_t vTableFixupsDirectorySize
Definition:
clr_header.h:35
retdec::fileformat::CLRHeader::setMajorRuntimeVersion
void setMajorRuntimeVersion(std::uint64_t clrMajorRuntimeVersion)
Definition:
clr_header.cpp:196
retdec::fileformat::CLRHeader::precompileHeaderAddress
std::uint64_t precompileHeaderAddress
Definition:
clr_header.h:38
retdec::fileformat::CLRHeader::getHeaderSize
std::uint64_t getHeaderSize() const
Definition:
clr_header.cpp:16
retdec::fileformat::CLRHeader::setResourcesAddress
void setResourcesAddress(std::uint64_t clrResourcesAddress)
Definition:
clr_header.cpp:250
retdec::fileformat::CLRHeader::headerSize
std::uint64_t headerSize
Definition:
clr_header.h:21
retdec::fileformat::CLRHeader::setPrecompileHeaderAddress
void setPrecompileHeaderAddress(std::uint64_t clrPrecompileHeaderAddress)
Definition:
clr_header.cpp:340
retdec::fileformat::CLRHeader::setExportAddressTableAddress
void setExportAddressTableAddress(std::uint64_t clrExportAddressTableAddress)
Definition:
clr_header.cpp:322
retdec::fileformat::CLRHeader::strongNameSignatureSize
std::uint64_t strongNameSignatureSize
Definition:
clr_header.h:31
retdec::fileformat::CLRHeader::setVTableFixupsDirectoryAddress
void setVTableFixupsDirectoryAddress(std::uint64_t clrVTableFixupsDirectoryAddress)
Definition:
clr_header.cpp:304
retdec::fileformat::CLRHeader::setMetadataDirectoryAddress
void setMetadataDirectoryAddress(std::uint64_t clrMetadataDirectoryAddress)
Definition:
clr_header.cpp:214
retdec::fileformat::CLRHeader::strongNameSignatureAddress
std::uint64_t strongNameSignatureAddress
Definition:
clr_header.h:30
retdec::fileformat::CLRHeader::setPrecompileHeaderSize
void setPrecompileHeaderSize(std::uint64_t clrPrecompileHeaderSize)
Definition:
clr_header.cpp:349
retdec::fileformat::CLRHeader::majorRuntimeVersion
std::uint64_t majorRuntimeVersion
Definition:
clr_header.h:22
retdec::fileformat::CLRHeader::codeManagerTableSize
std::uint64_t codeManagerTableSize
Definition:
clr_header.h:33
retdec::fileformat::CLRHeader::getVTableFixupsDirectoryAddress
std::uint64_t getVTableFixupsDirectoryAddress() const
Definition:
clr_header.cpp:133
retdec::fileformat::CLRHeader::setHeaderSize
void setHeaderSize(std::uint64_t clrHeaderSize)
Definition:
clr_header.cpp:187
retdec::fileformat::CLRHeader::setMetadataDirectorySize
void setMetadataDirectorySize(std::uint64_t clrMetadataDirectorySize)
Definition:
clr_header.cpp:223
retdec::fileformat::CLRHeader::getStrongNameSignatureAddress
std::uint64_t getStrongNameSignatureAddress() const
Definition:
clr_header.cpp:97
retdec::fileformat::CLRHeader::metadataDirectorySize
std::uint64_t metadataDirectorySize
Definition:
clr_header.h:25
retdec::fileformat::CLRHeader::entryPointToken
std::uint64_t entryPointToken
Definition:
clr_header.h:27
retdec::fileformat::CLRHeader::getMetadataDirectorySize
std::uint64_t getMetadataDirectorySize() const
Definition:
clr_header.cpp:52
retdec::fileformat::CLRHeader::flags
std::uint64_t flags
Definition:
clr_header.h:26
retdec::fileformat::CLRHeader::setStrongNameSignatureAddress
void setStrongNameSignatureAddress(std::uint64_t clrStrongNameSignatureAddress)
Definition:
clr_header.cpp:268
retdec::fileformat::CLRHeader::precompileHeaderSize
std::uint64_t precompileHeaderSize
Definition:
clr_header.h:39
retdec::fileformat::CLRHeader::exportAddressTableSize
std::uint64_t exportAddressTableSize
Definition:
clr_header.h:37
retdec::fileformat::CLRHeader::setVTableFixupsDirectorySize
void setVTableFixupsDirectorySize(std::uint64_t clrVTableFixupsDirectorySize)
Definition:
clr_header.cpp:313
retdec::fileformat::CLRHeader::getResourcesAddress
std::uint64_t getResourcesAddress() const
Definition:
clr_header.cpp:79
retdec::fileformat::CLRHeader::setResourcesSize
void setResourcesSize(std::uint64_t clrResourcesSize)
Definition:
clr_header.cpp:259
retdec::fileformat::CLRHeader::setExportAddressTableSize
void setExportAddressTableSize(std::uint64_t clrExportAddressTableSize)
Definition:
clr_header.cpp:331
retdec::fileformat::CLRHeader::setEntryPointToken
void setEntryPointToken(std::uint64_t clrEntryPointToken)
Definition:
clr_header.cpp:241
retdec::fileformat::CLRHeader::getFlags
std::uint64_t getFlags() const
Definition:
clr_header.cpp:61
retdec::fileformat::CLRHeader::getCodeManagerTableSize
std::uint64_t getCodeManagerTableSize() const
Definition:
clr_header.cpp:124
retdec::fileformat::CLRHeader::resourcesAddress
std::uint64_t resourcesAddress
Definition:
clr_header.h:28
retdec::fileformat::CLRHeader::minorRuntimeVersion
std::uint64_t minorRuntimeVersion
Definition:
clr_header.h:23
retdec::fileformat::CLRHeader::metadataDirectoryAddress
std::uint64_t metadataDirectoryAddress
Definition:
clr_header.h:24
retdec::fileformat::CLRHeader::getExportAddressTableSize
std::uint64_t getExportAddressTableSize() const
Definition:
clr_header.cpp:160
retdec::fileformat::CLRHeader::resourcesSize
std::uint64_t resourcesSize
Definition:
clr_header.h:29
retdec::fileformat::CLRHeader::getStrongNameSignatureSize
std::uint64_t getStrongNameSignatureSize() const
Definition:
clr_header.cpp:106
retdec::fileformat::CLRHeader::exportAddressTableAddress
std::uint64_t exportAddressTableAddress
Definition:
clr_header.h:36
retdec::fileformat::CLRHeader::setCodeManagerTableSize
void setCodeManagerTableSize(std::uint64_t clrCodeManagerTableSize)
Definition:
clr_header.cpp:295
retdec::fileformat::CLRHeader::getResourcesSize
std::uint64_t getResourcesSize() const
Definition:
clr_header.cpp:88
fileformat
retdec
Definition:
archive_wrapper.h:19
Generated on Tue Aug 8 2023 10:45:48 for retdec by
1.9.1