You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Zune software/Iris/compiled-uix.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Nearly all of the markup-related code is in the [`Microsoft.Iris.Markup`](https:
8
8
## Data format
9
9
Being a binary data format, UIB is capable of storing several primitive data types.
10
10
11
-
All integers are stored in little endian, as is standard for Windows.
11
+
All integers are encoded in little endian, as is standard for Windows.
12
12
13
13
### Offsets
14
14
All offsets are stored as unsigned 32-bit integers (`UInt32`), relative to the start of the file unless otherwise specified.
@@ -37,17 +37,17 @@ Arrays of 32-bit integers are also stored prefixed with their length, where, sim
37
37
Boolean values are stored as a single byte, where `0` represents `false` and `1` represents `true`.
38
38
39
39
### Enums
40
-
Enums are usually stored as 32-bit integers. Naturally, the meaning of a particular integer value depends which enum it is intended to be.
40
+
Enums are usually encoded as 32-bit integers, with the meaning of each integer value depending on which enum type is being used.
41
41
42
42
#### `MarkupType`
43
43
Name | Value
44
44
----------- | -------
45
45
`None` | `0x00000000`
46
-
`UI` | `0x01000000`
47
-
`Class` | `0x02000000`
48
-
`Effect` | `0x03000000`
49
-
`DataType` | `0x04000000`
50
-
`DataQuery` | `0x05000000`
46
+
`UI` | `0x00000001`
47
+
`Class` | `0x00000002`
48
+
`Effect` | `0x00000003`
49
+
`DataType` | `0x00000004`
50
+
`DataQuery` | `0x00000005`
51
51
52
52
## File structure
53
53
A custom binary format is used to store all compiler output. This format is divided into several sections, and can even be split across multiple files using [shared Data Tables](#shared-data-tables).
@@ -74,11 +74,11 @@ As an example, a Dependencies section with two includes might be stored as shown
74
74
75
75
Start offset | Value | Meaning
76
76
--------------------- | ------------- | ---------
77
-
`0x00` | `0x02000000` | The list contains 2 includes
78
-
`0x04` | `0x00000000` | `dependencies[0]` is compiled UIB
79
-
`0x05` | `0x05000000` | The URI of the 1st dependency is the 6th string in the [Data Table](#binary-data-table)
77
+
`0x00` | `0x00000002` | The list contains 2 includes
78
+
`0x04` | `0x00` | `dependencies[0]` is compiled UIB
79
+
`0x05` | `0x00000005` | The URI of the 1st dependency is the 6th string in the [Data Table](#binary-data-table)
80
80
`0x09` | `0x01` | `dependencies[1]` is UIX XML
81
-
`0x10` | `0x02000000` | The URI of the 2nd dependency is the 3rd string in the [Data Table](#binary-data-table)
81
+
`0x10` | `0x00000002` | The URI of the 2nd dependency is the 3rd string in the [Data Table](#binary-data-table)
82
82
83
83
### Type Export Declarations
84
84
The Type Export Declarations are composed of two tables: the Export Table and Alias Table.
@@ -109,15 +109,15 @@ As an example, a string table with three entries might be stored as shown below.
0 commit comments