From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:IL2CPP global-metadata.dat" |
|---|
| claim | "An Il2CppImageDefinition record (one per assembly image) is 40 bytes in metadata versions 24.1 and later (32 in 24.0, 24 in 19 to 23, 20 in 16); the image name is stringOffset + nameIndex, and its types are typeCount entries from typeStart in the type definitions table." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:IL2CPP global-metadata.dat" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "Il2CppImageDefinition" |
|---|
| variant | "metadata version 24.1 and later (computed by summing)" |
|---|
| size | "0x28" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "nameIndex" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "assemblyIndex" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "typeStart" |
|---|
|
| offset | "0xc" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "typeCount" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "exportedTypeStart" |
|---|
| condition | "version >= 24" |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "exportedTypeCount" |
|---|
| condition | "version >= 24" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "entryPointIndex" |
|---|
|
| offset | "0x1c" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "token" |
|---|
| condition | "version >= 19" |
|---|
|
| offset | "0x20" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "customAttributeStart" |
|---|
| condition | "version >= 24.1" |
|---|
|
| offset | "0x24" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "customAttributeCount" |
|---|
| condition | "version >= 24.1" |
|---|
|
|
|---|
| version_note | "In 24.0 the exportedType pair is present but customAttribute pair is not (size 32, token at 0x1C); in 19 to 23 neither pair (size 24, token at 0x14); in 16 no exportedType pair and no token (size 20). Related Il2CppAssemblyDefinition: imageIndex, token (from 24.1), customAttributeIndex (up to 24), referencedAssemblyStart/Count (from 20), then Il2CppAssemblyNameDefinition (nameIndex, cultureIndex, hashValueIndex up to 24.3, publicKeyIndex, hash_alg, hash_len, flags, major, minor, build, revision as 4-byte values, public_key_token[8]); computed size 68 in 24.2 and 64 in 24.4 and later." |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Il2CppAssemblyDefinition, Il2CppAssemblyNameDefinition and Il2CppImageDefinition members and version gates; sizes computed by summing" |
|---|
| repo | "https://github.com/Perfare/Il2CppDumper" |
|---|
| commit | "4741d46ba9cd6159c5d853eb9d6fc48b4bfa2b1a" |
|---|
| path | "Il2CppDumper/Il2Cpp/MetadataClass.cs" |
|---|
| lines | "111-164" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Il2CppImageDefinition" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T17:28:20.098Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:41:16.650Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read MetadataClass.cs 111-164 at 4741d46: 40 (24.1+), 32 (24.0), 24 (19-23), 20 (16) re-summed; Assembly 68 in 24.2 (hashValueIndex Max 24.3) and 64 from 24.4 re-summed. Metadata.cs 82-92 uses the 68/64 divisors." |
|---|
|
|
|---|