Merge pull request #2165 from sunheehnus/zipmap-read

zipmap.c: update comments above
This commit is contained in:
Salvatore Sanfilippo 2014-12-09 15:57:17 +01:00
commit d2aa91ce1f

View File

@ -51,10 +51,9 @@
* <len> is the length of the following string (key or value). * <len> is the length of the following string (key or value).
* <len> lengths are encoded in a single value or in a 5 bytes value. * <len> lengths are encoded in a single value or in a 5 bytes value.
* If the first byte value (as an unsigned 8 bit value) is between 0 and * If the first byte value (as an unsigned 8 bit value) is between 0 and
* 252, it's a single-byte length. If it is 253 then a four bytes unsigned * 253, it's a single-byte length. If it is 254 then a four bytes unsigned
* integer follows (in the host byte ordering). A value of 255 is used to * integer follows (in the host byte ordering). A value of 255 is used to
* signal the end of the hash. The special value 254 is used to mark * signal the end of the hash.
* empty space that can be used to add new key/value pairs.
* *
* <free> is the number of free unused bytes after the string, resulting * <free> is the number of free unused bytes after the string, resulting
* from modification of values associated to a key. For instance if "foo" * from modification of values associated to a key. For instance if "foo"