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: encoding-format.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ The following table describes how schemer encodes different values. Nullable val
36
36
| Variable-size Integer | Each byte's most significant bit indicates more bytes follow. Lower 7 bits are concatenated (in big-endian order) to form [ZigZag-encoded integer](https://developers.google.com/protocol-buffers/docs/encoding?csw=1#types). |
37
37
| Floating-point Number | Exactly `4 << n` bytes corresponding to the IEEE 754 binary representation of the floating-point number |
38
38
| Complex Number | Exactly `4 << n` bytes for each floating-point number `a` and `b` where the complex number is `a + bi`. |
39
-
| Enum | Stored as an unsigned fixed-size integer (see above), where `n` is determined by the number of enumerated values|
39
+
| Enum | Stored as an unsigned variable-size integer (see above) |
40
40
| Boolean | A single boolean value is encoded as 1 byte. 0 indicates `false` and any other value indicates `true`. |
41
41
| Fixed-Length String | UTF-8 encoding of the string, padded with spaces to fit within allotted space. |
42
42
| Variable-Length String | Length of the string is encoded as an unsigned variable-size integer followed by UTF-8 encoding of the string |
@@ -56,4 +56,4 @@ The following optimizations modify the above rules for encoding values:
56
56
* For objects with a fixed number of nullable or boolean fields, a single bit map is placed a the start of the object
57
57
* For arrays of a nullable type, each group of 8 elements is preceded by the corresponding null bit map
58
58
* Arrays of type boolean are encoded as bit maps. The final byte's least significant bits are padded with zeros.
59
-
* Variable-length arrays and objects w/variable fields may be stored in blocks, where each block indicates the number of elements or key-value pairs. A block size of 0 indicates the end of the array or object. A negative block size indicates that the block size is followed by the number of bytes in the block.
59
+
* Variable-length arrays and objects w/variable fields may be stored in blocks, where each block indicates the number of elements or key-value pairs. A block size of 0 indicates the end of the array or object. A negative block size indicates that the block size is followed by the number of bytes in the block.
0 commit comments