-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathVersion.cs
456 lines (453 loc) · 26 KB
/
Version.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ether_IL2CPP
{
public enum IL2CPP_Version
{
V24_1,
V24_4,
V28
};
public struct MetadataHeader_v24_4
{
public int sanity;
public int version;
public int stringLiteralOffset; // string data for managed code
public int stringLiteralCount;
public int stringLiteralDataOffset;
public int stringLiteralDataCount;
public int stringOffset; // string data for metadata
public int stringCount;
public int eventsOffset; // Il2CppEventDefinition
public int eventsCount;
public int propertiesOffset; // Il2CppPropertyDefinition
public int propertiesCount;
public int methodsOffset; // Il2CppMethodDefinition
public int methodsCount;
public int parameterDefaultValuesOffset; // Il2CppParameterDefaultValue
public int parameterDefaultValuesCount;
public int fieldDefaultValuesOffset; // Il2CppFieldDefaultValue
public int fieldDefaultValuesCount;
public int fieldAndParameterDefaultValueDataOffset; // uint8_t
public int fieldAndParameterDefaultValueDataCount;
public int fieldMarshaledSizesOffset; // Il2CppFieldMarshaledSize
public int fieldMarshaledSizesCount;
public int parametersOffset; // Il2CppParameterDefinition
public int parametersCount;
public int fieldsOffset; // Il2CppFieldDefinition
public int fieldsCount;
public int genericParametersOffset; // Il2CppGenericParameter
public int genericParametersCount;
public int genericParameterConstraintsOffset; // TypeIndex
public int genericParameterConstraintsCount;
public int genericContainersOffset; // Il2CppGenericContainer
public int genericContainersCount;
public int nestedTypesOffset; // TypeDefinitionIndex
public int nestedTypesCount;
public int interfacesOffset; // TypeIndex
public int interfacesCount;
public int vtableMethodsOffset; // EncodedMethodIndex
public int vtableMethodsCount;
public int interfaceOffsetsOffset; // Il2CppInterfaceOffsetPair
public int interfaceOffsetsCount;
public int typeDefinitionsOffset; // Il2CppTypeDefinition
public int typeDefinitionsCount;
public int rgctxEntriesOffset; // *
public int rgctxEntriesCount; // *
public int imagesOffset; // Il2CppImageDefinition
public int imagesCount;
public int assembliesOffset; // Il2CppAssemblyDefinition
public int assembliesCount;
public int metadataUsageListsOffset; // Il2CppMetadataUsageList
public int metadataUsageListsCount;
public int metadataUsagePairsOffset; // Il2CppMetadataUsagePair
public int metadataUsagePairsCount;
public int fieldRefsOffset; // Il2CppFieldRef
public int fieldRefsCount;
public int referencedAssembliesOffset; // public UInt32
public int referencedAssembliesCount;
public int attributesInfoOffset; // Il2CppCustomAttributeTypeRange
public int attributesInfoCount;
public int attributeTypesOffset; // TypeIndex
public int attributeTypesCount;
public int unresolvedVirtualCallParameterTypesOffset; // TypeIndex
public int unresolvedVirtualCallParameterTypesCount;
public int unresolvedVirtualCallParameterRangesOffset; // Il2CppRange
public int unresolvedVirtualCallParameterRangesCount;
public int windowsRuntimeTypeNamesOffset; // Il2CppWindowsRuntimeTypeNamePair
public int windowsRuntimeTypeNamesSize;
public int exportedTypeDefinitionsOffset; // TypeDefinitionIndex
public int exportedTypeDefinitionsCount;
}
public struct MetadataHeader_v28
{
public int sanity;
public int version;
public int stringLiteralOffset; // string data for managed code
public int stringLiteralSize;
public int stringLiteralDataOffset;
public int stringLiteralDataSize;
public int stringOffset; // string data for metadata
public int stringSize;
public int eventsOffset; // Il2CppEventDefinition
public int eventsSize;
public int propertiesOffset; // Il2CppPropertyDefinition
public int propertiesSize;
public int methodsOffset; // Il2CppMethodDefinition
public int methodsSize;
public int parameterDefaultValuesOffset; // Il2CppParameterDefaultValue
public int parameterDefaultValuesSize;
public int fieldDefaultValuesOffset; // Il2CppFieldDefaultValue
public int fieldDefaultValuesSize;
public int fieldAndParameterDefaultValueDataOffset; // int8_t
public int fieldAndParameterDefaultValueDataSize;
public int fieldMarshaledSizesOffset; // Il2CppFieldMarshaledSize
public int fieldMarshaledSizesSize;
public int parametersOffset; // Il2CppParameterDefinition
public int parametersSize;
public int fieldsOffset; // Il2CppFieldDefinition
public int fieldsSize;
public int genericParametersOffset; // Il2CppGenericParameter
public int genericParametersSize;
public int genericParameterConstraintsOffset; // TypeIndex
public int genericParameterConstraintsSize;
public int genericContainersOffset; // Il2CppGenericContainer
public int genericContainersSize;
public int nestedTypesOffset; // TypeDefinitionIndex
public int nestedTypesSize;
public int interfacesOffset; // TypeIndex
public int interfacesSize;
public int vtableMethodsOffset; // EncodedMethodIndex
public int vtableMethodsSize;
public int interfaceOffsetsOffset; // Il2CppInterfaceOffsetPair
public int interfaceOffsetsSize;
public int typeDefinitionsOffset; // Il2CppTypeDefinition
public int typeDefinitionsSize;
public int imagesOffset; // Il2CppImageDefinition
public int imagesSize;
public int assembliesOffset; // Il2CppAssemblyDefinition
public int assembliesSize;
public int fieldRefsOffset; // Il2CppFieldRef
public int fieldRefsSize;
public int referencedAssembliesOffset; // int32_t
public int referencedAssembliesSize;
public int attributeDataOffset;
public int attributeDataSize;
public int attributeDataRangeOffset;
public int attributeDataRangeSize;
public int unresolvedVirtualCallParameterTypesOffset; // TypeIndex
public int unresolvedVirtualCallParameterTypesSize;
public int unresolvedVirtualCallParameterRangesOffset; // Il2CppMetadataRange
public int unresolvedVirtualCallParameterRangesSize;
public int windowsRuntimeTypeNamesOffset; // Il2CppWindowsRuntimeTypeNamePair
public int windowsRuntimeTypeNamesSize;
public int windowsRuntimeStringsOffset; // const char*
public int windowsRuntimeStringsSize;
public int exportedTypeDefinitionsOffset; // TypeDefinitionIndex
public int exportedTypeDefinitionsSize;
}
public struct MetadataHeader_v24_1
{
public int sanity;
public int version;
public int stringLiteralOffset; // string data for managed code
public int stringLiteralCount;
public int stringLiteralDataOffset;
public int stringLiteralDataCount;
public int stringOffset; // string data for metadata
public int stringCount;
public int eventsOffset; // Il2CppEventDefinition
public int eventsCount;
public int propertiesOffset; // Il2CppPropertyDefinition
public int propertiesCount;
public int methodsOffset; // Il2CppMethodDefinition
public int methodsCount;
public int parameterDefaultValuesOffset; // Il2CppParameterDefaultValue
public int parameterDefaultValuesCount;
public int fieldDefaultValuesOffset; // Il2CppFieldDefaultValue
public int fieldDefaultValuesCount;
public int fieldAndParameterDefaultValueDataOffset; // int8_t
public int fieldAndParameterDefaultValueDataCount;
public int fieldMarshaledSizesOffset; // Il2CppFieldMarshaledSize
public int fieldMarshaledSizesCount;
public int parametersOffset; // Il2CppParameterDefinition
public int parametersCount;
public int fieldsOffset; // Il2CppFieldDefinition
public int fieldsCount;
public int genericParametersOffset; // Il2CppGenericParameter
public int genericParametersCount;
public int genericParameterConstraintsOffset; // TypeIndex
public int genericParameterConstraintsCount;
public int genericContainersOffset; // Il2CppGenericContainer
public int genericContainersCount;
public int nestedTypesOffset; // TypeDefinitionIndex
public int nestedTypesCount;
public int interfacesOffset; // TypeIndex
public int interfacesCount;
public int vtableMethodsOffset; // EncodedMethodIndex
public int vtableMethodsCount;
public int interfaceOffsetsOffset; // Il2CppInterfaceOffsetPair
public int interfaceOffsetsCount;
public int typeDefinitionsOffset; // Il2CppTypeDefinition
public int typeDefinitionsCount;
public int rgctxEntriesOffset; // Il2CppRGCTXDefinition
public int rgctxEntriesCount;
public int imagesOffset; // Il2CppImageDefinition
public int imagesCount;
public int assembliesOffset; // Il2CppAssemblyDefinition
public int assembliesCount;
public int metadataUsageListsOffset; // Il2CppMetadataUsageList
public int metadataUsageListsCount;
public int metadataUsagePairsOffset; // Il2CppMetadataUsagePair
public int metadataUsagePairsCount;
public int fieldRefsOffset; // Il2CppFieldRef
public int fieldRefsCount;
public int referencedAssembliesOffset; // int32_t
public int referencedAssembliesCount;
public int attributesInfoOffset; // Il2CppCustomAttributeTypeRange
public int attributesInfoCount;
public int attributeTypesOffset; // TypeIndex
public int attributeTypesCount;
public int unresolvedVirtualCallParameterTypesOffset; // TypeIndex
public int unresolvedVirtualCallParameterTypesCount;
public int unresolvedVirtualCallParameterRangesOffset; // Il2CppRange
public int unresolvedVirtualCallParameterRangesCount;
public int windowsRuntimeTypeNamesOffset; // Il2CppWindowsRuntimeTypeNamePair
public int windowsRuntimeTypeNamesSize;
public int exportedTypeDefinitionsOffset; // TypeDefinitionIndex
public int exportedTypeDefinitionsCount;
}
public class LoadMetadata_v24_4
{
public Stream metadatastream;
public MetadataHeader_v24_4 Header;
public LoadMetadata_v24_4(Stream i_metadatastream)
{
metadatastream = i_metadatastream;
BinaryReader Reader = new BinaryReader(metadatastream);
Header.sanity = Reader.ReadInt32();
Header.version = Reader.ReadInt32();
Header.stringLiteralOffset = Reader.ReadInt32(); // string data for managed code
Header.stringLiteralCount = Reader.ReadInt32();
Header.stringLiteralDataOffset = Reader.ReadInt32();
Header.stringLiteralDataCount = Reader.ReadInt32();
Header.stringOffset = Reader.ReadInt32(); // string data for metadata
Header.stringCount = Reader.ReadInt32();
Header.eventsOffset = Reader.ReadInt32(); // Il2CppEventDefinition
Header.eventsCount = Reader.ReadInt32();
Header.propertiesOffset = Reader.ReadInt32(); // Il2CppPropertyDefinition
Header.propertiesCount = Reader.ReadInt32();
Header.methodsOffset = Reader.ReadInt32(); // Il2CppMethodDefinition
Header.methodsCount = Reader.ReadInt32();
Header.parameterDefaultValuesOffset = Reader.ReadInt32(); // Il2CppParameterDefaultValue
Header.parameterDefaultValuesCount = Reader.ReadInt32();
Header.fieldDefaultValuesOffset = Reader.ReadInt32(); // Il2CppFieldDefaultValue
Header.fieldDefaultValuesCount = Reader.ReadInt32();
Header.fieldAndParameterDefaultValueDataOffset = Reader.ReadInt32(); // uint8_t
Header.fieldAndParameterDefaultValueDataCount = Reader.ReadInt32();
Header.fieldMarshaledSizesOffset = Reader.ReadInt32(); // Il2CppFieldMarshaledSize
Header.fieldMarshaledSizesCount = Reader.ReadInt32();
Header.parametersOffset = Reader.ReadInt32(); // Il2CppParameterDefinition
Header.parametersCount = Reader.ReadInt32();
Header.fieldsOffset = Reader.ReadInt32(); // Il2CppFieldDefinition
Header.fieldsCount = Reader.ReadInt32();
Header.genericParametersOffset = Reader.ReadInt32(); // Il2CppGenericParameter
Header.genericParametersCount = Reader.ReadInt32();
Header.genericParameterConstraintsOffset = Reader.ReadInt32(); // TypeIndex
Header.genericParameterConstraintsCount = Reader.ReadInt32();
Header.genericContainersOffset = Reader.ReadInt32(); // Il2CppGenericContainer
Header.genericContainersCount = Reader.ReadInt32();
Header.nestedTypesOffset = Reader.ReadInt32(); // TypeDefinitionIndex
Header.nestedTypesCount = Reader.ReadInt32();
Header.interfacesOffset = Reader.ReadInt32(); // TypeIndex
Header.interfacesCount = Reader.ReadInt32();
Header.vtableMethodsOffset = Reader.ReadInt32(); // EncodedMethodIndex
Header.vtableMethodsCount = Reader.ReadInt32();
Header.interfaceOffsetsOffset = Reader.ReadInt32(); // Il2CppInterfaceOffsetPair
Header.interfaceOffsetsCount = Reader.ReadInt32();
Header.typeDefinitionsOffset = Reader.ReadInt32(); // Il2CppTypeDefinition
Header.typeDefinitionsCount = Reader.ReadInt32();
Header.imagesOffset = Reader.ReadInt32(); // Il2CppImageDefinition
Header.imagesCount = Reader.ReadInt32();
Header.assembliesOffset = Reader.ReadInt32(); // Il2CppAssemblyDefinition
Header.assembliesCount = Reader.ReadInt32();
Header.metadataUsageListsOffset = Reader.ReadInt32(); // Il2CppMetadataUsageList
Header.metadataUsageListsCount = Reader.ReadInt32();
Header.metadataUsagePairsOffset = Reader.ReadInt32(); // Il2CppMetadataUsagePair
Header.metadataUsagePairsCount = Reader.ReadInt32();
Header.fieldRefsOffset = Reader.ReadInt32(); // Il2CppFieldRef
Header.fieldRefsCount = Reader.ReadInt32();
Header.referencedAssembliesOffset = Reader.ReadInt32(); // int32
Header.referencedAssembliesCount = Reader.ReadInt32();
Header.attributesInfoOffset = Reader.ReadInt32(); // Il2CppCustomAttributeTypeRange
Header.attributesInfoCount = Reader.ReadInt32();
Header.attributeTypesOffset = Reader.ReadInt32(); // TypeIndex
Header.attributeTypesCount = Reader.ReadInt32();
Header.unresolvedVirtualCallParameterTypesOffset = Reader.ReadInt32(); // TypeIndex
Header.unresolvedVirtualCallParameterTypesCount = Reader.ReadInt32();
Header.unresolvedVirtualCallParameterRangesOffset = Reader.ReadInt32(); // Il2CppRange
Header.unresolvedVirtualCallParameterRangesCount = Reader.ReadInt32();
Header.windowsRuntimeTypeNamesOffset = Reader.ReadInt32(); // Il2CppWindowsRuntimeTypeNamePair
Header.windowsRuntimeTypeNamesSize = Reader.ReadInt32();
Header.exportedTypeDefinitionsOffset = Reader.ReadInt32(); // TypeDefinitionIndex
Header.exportedTypeDefinitionsCount = Reader.ReadInt32();
metadatastream.Position = 0;
}
}
public class LoadMetadata_v28
{
public Stream metadatastream;
public MetadataHeader_v28 Header;
public LoadMetadata_v28(Stream i_metadatastream)
{
metadatastream = i_metadatastream;
BinaryReader Reader = new BinaryReader(metadatastream);
Header.sanity = Reader.ReadInt32();
Header.version = Reader.ReadInt32();
Header.stringLiteralOffset = Reader.ReadInt32(); // string data for managed code
Header.stringLiteralSize = Reader.ReadInt32();
Header.stringLiteralDataOffset = Reader.ReadInt32();
Header.stringLiteralDataSize = Reader.ReadInt32();
Header.stringOffset = Reader.ReadInt32(); // string data for metadata
Header.stringSize = Reader.ReadInt32();
Header.eventsOffset = Reader.ReadInt32(); // Il2CppEventDefinition
Header.eventsSize = Reader.ReadInt32();
Header.propertiesOffset = Reader.ReadInt32(); // Il2CppPropertyDefinition
Header.propertiesSize = Reader.ReadInt32();
Header.methodsOffset = Reader.ReadInt32(); // Il2CppMethodDefinition
Header.methodsSize = Reader.ReadInt32();
Header.parameterDefaultValuesOffset = Reader.ReadInt32(); // Il2CppParameterDefaultValue
Header.parameterDefaultValuesSize = Reader.ReadInt32();
Header.fieldDefaultValuesOffset = Reader.ReadInt32(); // Il2CppFieldDefaultValue
Header.fieldDefaultValuesSize = Reader.ReadInt32();
Header.fieldAndParameterDefaultValueDataOffset = Reader.ReadInt32(); // uint8_t
Header.fieldAndParameterDefaultValueDataSize = Reader.ReadInt32();
Header.fieldMarshaledSizesOffset = Reader.ReadInt32(); // Il2CppFieldMarshaledSize
Header.fieldMarshaledSizesSize = Reader.ReadInt32();
Header.parametersOffset = Reader.ReadInt32(); // Il2CppParameterDefinition
Header.parametersSize = Reader.ReadInt32();
Header.fieldsOffset = Reader.ReadInt32(); // Il2CppFieldDefinition
Header.fieldsSize = Reader.ReadInt32();
Header.genericParametersOffset = Reader.ReadInt32(); // Il2CppGenericParameter
Header.genericParametersSize = Reader.ReadInt32();
Header.genericParameterConstraintsOffset = Reader.ReadInt32(); // TypeIndex
Header.genericParameterConstraintsSize = Reader.ReadInt32();
Header.genericContainersOffset = Reader.ReadInt32(); // Il2CppGenericContainer
Header.genericContainersSize = Reader.ReadInt32();
Header.nestedTypesOffset = Reader.ReadInt32(); // TypeDefinitionIndex
Header.nestedTypesSize = Reader.ReadInt32();
Header.interfacesOffset = Reader.ReadInt32(); // TypeIndex
Header.interfacesSize = Reader.ReadInt32();
Header.vtableMethodsOffset = Reader.ReadInt32(); // EncodedMethodIndex
Header.vtableMethodsSize = Reader.ReadInt32();
Header.interfaceOffsetsOffset = Reader.ReadInt32(); // Il2CppInterfaceOffsetPair
Header.interfaceOffsetsSize = Reader.ReadInt32();
Header.typeDefinitionsOffset = Reader.ReadInt32(); // Il2CppTypeDefinition
Header.typeDefinitionsSize = Reader.ReadInt32();
Header.imagesOffset = Reader.ReadInt32(); // Il2CppImageDefinition
Header.imagesSize = Reader.ReadInt32();
Header.assembliesOffset = Reader.ReadInt32(); // Il2CppAssemblyDefinition
Header.assembliesSize = Reader.ReadInt32();
Header.fieldRefsOffset = Reader.ReadInt32(); // Il2CppFieldRef
Header.fieldRefsSize = Reader.ReadInt32();
Header.referencedAssembliesOffset = Reader.ReadInt32(); // int32_t
Header.referencedAssembliesSize = Reader.ReadInt32();
Header.attributeDataOffset = Reader.ReadInt32();
Header.attributeDataSize = Reader.ReadInt32();
Header.attributeDataRangeOffset = Reader.ReadInt32();
Header.attributeDataRangeSize = Reader.ReadInt32();
Header.unresolvedVirtualCallParameterTypesOffset = Reader.ReadInt32(); // TypeIndex
Header.unresolvedVirtualCallParameterTypesSize = Reader.ReadInt32();
Header.unresolvedVirtualCallParameterRangesOffset = Reader.ReadInt32(); // Il2CppMetadataRange
Header.unresolvedVirtualCallParameterRangesSize = Reader.ReadInt32();
Header.windowsRuntimeTypeNamesOffset = Reader.ReadInt32(); // Il2CppWindowsRuntimeTypeNamePair
Header.windowsRuntimeTypeNamesSize = Reader.ReadInt32();
Header.windowsRuntimeStringsOffset = Reader.ReadInt32(); // const char*
Header.windowsRuntimeStringsSize = Reader.ReadInt32();
Header.exportedTypeDefinitionsOffset = Reader.ReadInt32(); // TypeDefinitionIndex
Header.exportedTypeDefinitionsSize = Reader.ReadInt32();
}
}
public class LoadMetadata_v24_1
{
public Stream metadatastream;
public MetadataHeader_v24_1 Header;
public LoadMetadata_v24_1(Stream i_metadatastream)
{
metadatastream = i_metadatastream;
BinaryReader Reader = new BinaryReader(metadatastream);
Header.sanity = Reader.ReadInt32();
Header.version = Reader.ReadInt32();
Header.stringLiteralOffset = Reader.ReadInt32(); // string data for managed code
Header.stringLiteralCount = Reader.ReadInt32();
Header.stringLiteralDataOffset = Reader.ReadInt32();
Header.stringLiteralDataCount = Reader.ReadInt32();
Header.stringOffset = Reader.ReadInt32(); // string data for metadata
Header.stringCount = Reader.ReadInt32();
Header.eventsOffset = Reader.ReadInt32(); // Il2CppEventDefinition
Header.eventsCount = Reader.ReadInt32();
Header.propertiesOffset = Reader.ReadInt32(); // Il2CppPropertyDefinition
Header.propertiesCount = Reader.ReadInt32();
Header.methodsOffset = Reader.ReadInt32(); // Il2CppMethodDefinition
Header.methodsCount = Reader.ReadInt32();
Header.parameterDefaultValuesOffset = Reader.ReadInt32(); // Il2CppParameterDefaultValue
Header.parameterDefaultValuesCount = Reader.ReadInt32();
Header.fieldDefaultValuesOffset = Reader.ReadInt32(); // Il2CppFieldDefaultValue
Header.fieldDefaultValuesCount = Reader.ReadInt32();
Header.fieldAndParameterDefaultValueDataOffset = Reader.ReadInt32(); // uint8_t
Header.fieldAndParameterDefaultValueDataCount = Reader.ReadInt32();
Header.fieldMarshaledSizesOffset = Reader.ReadInt32(); // Il2CppFieldMarshaledSize
Header.fieldMarshaledSizesCount = Reader.ReadInt32();
Header.parametersOffset = Reader.ReadInt32(); // Il2CppParameterDefinition
Header.parametersCount = Reader.ReadInt32();
Header.fieldsOffset = Reader.ReadInt32(); // Il2CppFieldDefinition
Header.fieldsCount = Reader.ReadInt32();
Header.genericParametersOffset = Reader.ReadInt32(); // Il2CppGenericParameter
Header.genericParametersCount = Reader.ReadInt32();
Header.genericParameterConstraintsOffset = Reader.ReadInt32(); // TypeIndex
Header.genericParameterConstraintsCount = Reader.ReadInt32();
Header.genericContainersOffset = Reader.ReadInt32(); // Il2CppGenericContainer
Header.genericContainersCount = Reader.ReadInt32();
Header.nestedTypesOffset = Reader.ReadInt32(); // TypeDefinitionIndex
Header.nestedTypesCount = Reader.ReadInt32();
Header.interfacesOffset = Reader.ReadInt32(); // TypeIndex
Header.interfacesCount = Reader.ReadInt32();
Header.vtableMethodsOffset = Reader.ReadInt32(); // EncodedMethodIndex
Header.vtableMethodsCount = Reader.ReadInt32();
Header.interfaceOffsetsOffset = Reader.ReadInt32(); // Il2CppInterfaceOffsetPair
Header.interfaceOffsetsCount = Reader.ReadInt32();
Header.typeDefinitionsOffset = Reader.ReadInt32(); // Il2CppTypeDefinition
Header.typeDefinitionsCount = Reader.ReadInt32();
Header.rgctxEntriesOffset = Reader.ReadInt32(); // Il2CppRGCTXDefinition
Header.rgctxEntriesCount = Reader.ReadInt32();
Header.imagesOffset = Reader.ReadInt32(); // Il2CppImageDefinition
Header.imagesCount = Reader.ReadInt32();
Header.assembliesOffset = Reader.ReadInt32(); // Il2CppAssemblyDefinition
Header.assembliesCount = Reader.ReadInt32();
Header.metadataUsageListsOffset = Reader.ReadInt32(); // Il2CppMetadataUsageList
Header.metadataUsageListsCount = Reader.ReadInt32();
Header.metadataUsagePairsOffset = Reader.ReadInt32(); // Il2CppMetadataUsagePair
Header.metadataUsagePairsCount = Reader.ReadInt32();
Header.fieldRefsOffset = Reader.ReadInt32(); // Il2CppFieldRef
Header.fieldRefsCount = Reader.ReadInt32();
Header.referencedAssembliesOffset = Reader.ReadInt32(); // int32_t
Header.referencedAssembliesCount = Reader.ReadInt32();
Header.attributesInfoOffset = Reader.ReadInt32(); // Il2CppCustomAttributeTypeRange
Header.attributesInfoCount = Reader.ReadInt32();
Header.attributeTypesOffset = Reader.ReadInt32(); // TypeIndex
Header.attributeTypesCount = Reader.ReadInt32();
Header.unresolvedVirtualCallParameterTypesOffset = Reader.ReadInt32(); // TypeIndex
Header.unresolvedVirtualCallParameterTypesCount = Reader.ReadInt32();
Header.unresolvedVirtualCallParameterRangesOffset = Reader.ReadInt32(); // Il2CppRange
Header.unresolvedVirtualCallParameterRangesCount = Reader.ReadInt32();
Header.windowsRuntimeTypeNamesOffset = Reader.ReadInt32(); // Il2CppWindowsRuntimeTypeNamePair
Header.windowsRuntimeTypeNamesSize = Reader.ReadInt32();
Header.exportedTypeDefinitionsOffset = Reader.ReadInt32(); // TypeDefinitionIndex
Header.exportedTypeDefinitionsCount = Reader.ReadInt32();
}
}
}