From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:.NET resources (.resources)" |
|---|
| claim | "After the ResourceManager header: int32 file version (1 or 2), int32 resource count, int32 type count, type-name strings, zero padding to an 8-byte file position, int32 name hashes[count], int32 name positions[count], int32 data section offset, then the name section (UTF-16 name with 7-bit byte length + int32 data offset) and the data section." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:.NET resources (.resources)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "runtime_resource_set" |
|---|
| size | "variable" |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "int32" |
|---|
| name | "version" |
|---|
| notes | "1 or 2" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "int32" |
|---|
| name | "num_resources" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "int32" |
|---|
| name | "num_types" |
|---|
|
| offset | 12 |
|---|
| size | "variable" |
|---|
| type | "string7[]" |
|---|
| name | "type_names" |
|---|
|
| offset | "aligned 8" |
|---|
| size | "4*n" |
|---|
| type | "int32[]" |
|---|
| name | "name_hashes" |
|---|
| notes | "sorted ascending" |
|---|
|
| offset | "next" |
|---|
| size | "4*n" |
|---|
| type | "int32[]" |
|---|
| name | "name_positions" |
|---|
| notes | "relative to name section" |
|---|
|
| offset | "next" |
|---|
| size | 4 |
|---|
| type | "int32" |
|---|
| name | "data_section_offset" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "_ReadResources" |
|---|
| repo | "https://github.com/dotnet/runtime" |
|---|
| commit | "9b1b0e9c699a54a2b8e8241bbc2ab650bd89d819" |
|---|
| path | "src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs" |
|---|
| lines | "834-948" |
|---|
|
| type | "source" |
|---|
| detail | "name compare reads 7-bit byte length then chars; then int32 data position" |
|---|
| repo | "https://github.com/dotnet/runtime" |
|---|
| commit | "9b1b0e9c699a54a2b8e8241bbc2ab650bd89d819" |
|---|
| path | "src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs" |
|---|
| lines | "305-345" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "RuntimeResourceSet header and tables" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T20:03:21.308Z" |
|---|
| verifications | |
|---|