Skip to content

Commit 6c96743

Browse files
authored
Merge pull request #15 from nebkat/patch-1
Clarify annotated array format aliases
2 parents 3ca6ab5 + 7b9bfa6 commit 6c96743

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

JData_specification.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,12 @@ The first 8 data types are considered "integer" types, and the last three types
682682

683683
In addition, the below two data types can be used as aliases to the `uint8` type in an annotated array format:
684684

685-
* **char**: character arrays (8-bit)
686-
* **logical**: logical arrays (8-bit)
685+
* **byte**: byte arrays (8-bit), `[B]` in BJData, no correspondence in UBJSON
686+
* **char**: character arrays (8-bit), `[C]` in BJData/UBJSON
687+
* **logical**: logical arrays (8-bit), `[T]`/`[F]` in BJData/UBJSON
687688

688689
If the above two aliases are used, a parser may optionally convert the enclosed
689-
`uint8` data to character or logical arrays (1-byte).
690+
`uint8` data to byte, character or logical arrays (1-byte).
690691

691692
The following `"_ArrayLabel_"` example defines a 4D array with the first dimension with a name of `"x"` and length of 5;
692693
the 2nd dimension is named as `"y"` of length 5, the 3rd dimension as `"z"` of length 6, and the 1st column of the 4th

0 commit comments

Comments
 (0)