Skip to content

Commit cb29701

Browse files
committed
review: clarify the role of NULL character in serialized maps.
Signed-off-by: Piotr Sikora <[email protected]>
1 parent d2df35a commit cb29701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

abi-versions/v0.2.1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,8 +1932,8 @@ This function is never called.
19321932
Non-empty maps are serialized as:
19331933
- 32-bit integer containing the number of keys in the map,
19341934
- a series of pairs of 32-bit integers containing length of key and value,
1935-
- a series of pairs of bytes containing key and value, separated by `NULL`
1936-
(`0x00`) character.
1935+
- a series of pairs of byte sequences containing key and value, with each
1936+
key and value byte sequence terminated by a `NULL` (`0x00`) character.
19371937

19381938
e.g. the map `{{"a": "1"}, {"b": "22"}}` would be serialized as:
19391939
- `0x02`,

0 commit comments

Comments
 (0)