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/design/datacontracts/data_descriptor.md
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -212,11 +212,11 @@ The global values will be in an array, with each value described by a dictionary
212
212
213
213
*`"name": "global value name"` the name of the global value
214
214
*`"type": "type name"` the type of the global value
215
-
* optional `"value": VALUE | [ int ] | "unknown"` the value of the global value, or an offset in an auxiliary array containing the value or "unknown".
215
+
* optional `"value": VALUE | [ int ] ` the value of the global value, or an offset in an auxiliary array containing the value.
216
+
217
+
The `VALUE` may be either a number of string. JSON numeric constants are always parsed as numbers. JSON strings are always parsed as strings and may additionally parse as a hex (with prefix `0x` or `0X`) or decimal number.
218
+
Numeric constants must be within the range of the type of the global value.
216
219
217
-
The `VALUE` may be a JSON numeric constant integer or a string containing a signed or unsigned
218
-
decimal or hex (with prefix `0x` or `0X`) integer constant. The constant must be within the range
219
-
of the type of the global value.
220
220
221
221
**Compact format**:
222
222
@@ -225,7 +225,8 @@ The global values will be in a dictionary, with each key being the name of a glo
225
225
*`[VALUE | [int], "type name"]` the type and value of a global
226
226
*`VALUE | [int]` just the value of a global
227
227
228
-
As in the regular format, `VALUE` is a numeric constant or a string containing an integer constant.
228
+
`VALUE` may be either a number of string. JSON numeric constants are always parsed as numbers. JSON strings are always parsed as strings and may additionally parse as a hex (with prefix `0x` or `0X`) or decimal number.
229
+
Numeric constants must be within the range of the type of the global value.
229
230
230
231
Note that a two element array is unambiguously "type and value", whereas a one-element array is
231
232
unambiguously "indirect value".
@@ -288,7 +289,7 @@ The baseline is given in the "regular" format.
288
289
],
289
290
"globals": [
290
291
{ "name":"FEATURE_EH_FUNCLETS", "type":"uint8", "value":"0" }, // baseline defaults value to 0
0 commit comments