PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BAML format.txt

http://github.com/icsharpcode/ILSpy
Plain Text | 22 lines | 11 code | 11 blank | 0 comment | 0 complexity | 6b4d8f9bb5cd87ce281daaeedb7c0447 MD5 | raw file
 1BAML format description
 2
 3A BAML stream consists of a header and sequential records that contain the data.
 4
 5The Header
 6
 7The header is 28 bytes long. The first four bytes are a little endian integer containing the length of the preamble in bytes. The preamble is the UTF-16 string "MSBAML", followed by three integers with the value 0x60000.
 8
 9Record format:
10
11In general a record consists of a type byte and its content. Some records also have a field, following the type byte, containing the remaining length of the record, encoded as 7-bit encoded integer.
12
13Record Types:
14
15DocumentStart (= 0x01):
16
17The document start (after the type byte) is 6 Bytes long. Usually 00 FF FF FF FF 00. These bytes can be safely ignored.
18
19AssemblyInfo (= 0xC1):
20
21The length field is followed by a 2 byte long ID. The ID is followed by a string containing the assembly name.
22