encoded types API to get blob length

This commit is contained in:
antirez
2011-02-28 14:48:49 +01:00
parent 2cc993655f
commit d4fb9f4144
5 changed files with 14 additions and 11 deletions

View File

@ -730,8 +730,8 @@ unsigned int ziplistLen(unsigned char *zl) {
return len;
}
/* Return size in bytes of ziplist. */
unsigned int ziplistSize(unsigned char *zl) {
/* Return ziplist blob size in bytes. */
size_t ziplistBlobLen(unsigned char *zl) {
return ZIPLIST_BYTES(zl);
}