projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a86ab4
)
ziplist.c: added comments about the new 24 bit encoding.
author
antirez
<antirez@gmail.com>
Tue, 24 Apr 2012 10:51:59 +0000
(12:51 +0200)
committer
antirez
<antirez@gmail.com>
Tue, 24 Apr 2012 10:52:36 +0000
(12:52 +0200)
src/ziplist.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ziplist.c
b/src/ziplist.c
index a2c0edb3a1cf74c088c6f7e2b8e46959e7695d45..81eec18a3782a8f18ea2f379978ec52c75f4ce7f 100644
(file)
--- a/
src/ziplist.c
+++ b/
src/ziplist.c
@@
-58,6
+58,10
@@
* Integer encoded as int32_t (4 bytes).
* |1110____| - 1 byte
* Integer encoded as int64_t (8 bytes).
+ * |1111____| - 1 byte
+ * Integer encoded as 24 bit signed (3 bytes).
+ *
+ * All the integers are represented in little endian byte order.
*/
#include <stdio.h>