From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:.NET metadata (ECMA-335)" |
|---|
| claim | "Each stream header is uint32 offset (from the metadata root), uint32 size, then the NUL-terminated ASCII name padded with NULs to a multiple of 4 bytes (at most 32 characters): '#~' is 12 bytes, '#Strings' 20, '#US' 12, '#GUID' 16, '#Blob' 16." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:.NET metadata (ECMA-335)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "STREAM_HEADER" |
|---|
| size_min | 12 |
|---|
| size_max | 40 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Offset" |
|---|
| notes | "from the metadata root" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Size" |
|---|
| notes | "multiple of 4; Mono ignores it" |
|---|
|
| offset | 8 |
|---|
| size | "variable" |
|---|
| type | "char[]" |
|---|
| name | "Name" |
|---|
| notes | "NUL-terminated, padded to 4 bytes: #~ #- #Strings #US #GUID #Blob #Pdb #JTD" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "StreamHeader reader: name read up to 32 bytes, position advanced to (len + 1 + 3) & ~3" |
|---|
| repo | "https://github.com/0xd4d/dnlib" |
|---|
| commit | "9ab9b58ab31b99b3f6cdef36efec613fc11ddbe2" |
|---|
| path | "src/DotNet/MD/StreamHeader.cs" |
|---|
| lines | "43-83" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "stream order #~,#Strings,#US,#GUID,#Blob in 65344 of 67630 managed PEs, #~,#Strings,#GUID,#Blob (no user strings) in 2141; first stream at root+0x6C for 'v4.0.30319' files with five streams" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Stream header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T15:23:45.782Z" |
|---|
| verifications | |
|---|