From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:BAML" |
|---|
| claim | "A BAML stream starts with uint32 signature length 12, the UTF-16 string MSBAML, padding to 4 bytes, then reader, updater and writer versions as uint16 major, uint16 minor, each 0.0x60 (00 00 60 00) in files that ILSpy accepts." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:BAML" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "baml_header" |
|---|
| size | 28 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "sig_len" |
|---|
| notes | "12" |
|---|
|
| offset | 4 |
|---|
| size | 12 |
|---|
| type | "utf16" |
|---|
| name | "signature" |
|---|
| notes | "MSBAML" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "ver" |
|---|
| name | "reader_version" |
|---|
| notes | "0.0x60" |
|---|
|
| offset | 20 |
|---|
| size | 4 |
|---|
| type | "ver" |
|---|
| name | "updater_version" |
|---|
|
| offset | 24 |
|---|
| size | 4 |
|---|
| type | "ver" |
|---|
| name | "writer_version" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ReadSignature and version check" |
|---|
| repo | "https://github.com/icsharpcode/ILSpy" |
|---|
| commit | "0abb04db61517e0564923a7beadbab4da13fd830" |
|---|
| path | "ICSharpCode.BamlDecompiler/Baml/BamlReader.cs" |
|---|
| lines | "63-90" |
|---|
|
| type | "source" |
|---|
| detail | "WPF Process_Header skips stringLength + 3 ints" |
|---|
| repo | "https://github.com/dotnet/wpf" |
|---|
| commit | "65d15adece1df9a73e3d1abc11f8bbf99e9fc7a9" |
|---|
| path | "src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006Reader.cs" |
|---|
| lines | "1099-1103" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T20:03:21.615Z" |
|---|
| verifications | |
|---|