From f22cff43a60010644907e750fb3be5e49b9f8698 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 24 Apr 2012 12:51:59 +0200 Subject: [PATCH] ziplist.c: added comments about the new 24 bit encoding. --- src/ziplist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ziplist.c b/src/ziplist.c index a2c0edb3..81eec18a 100644 --- 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