Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
888ea175
Commit
888ea175
authored
Nov 25, 2014
by
Sun He
Committed by
antirez
Dec 09, 2014
Browse files
zipmap.c: update comments above
parent
86ebc139
Changes
1
Show whitespace changes
Inline
Side-by-side
src/zipmap.c
View file @
888ea175
...
@@ -51,10 +51,9 @@
...
@@ -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
* 25
2
, it's a single-byte length. If it is 25
3
then a four bytes unsigned
* 25
3
, it's a single-byte length. If it is 25
4
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment