X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/a5be65f71c927601260f4518236cbc7bc3d87965..255eebe22167e00f74e359bc71718225d6bd70c8:/src/intset.c diff --git a/src/intset.c b/src/intset.c index bfd3307d..13bd220e 100644 --- a/src/intset.c +++ b/src/intset.c @@ -222,6 +222,11 @@ uint32_t intsetLen(intset *is) { return is->length; } +/* Return intset blob size in bytes. */ +size_t intsetBlobLen(intset *is) { + return sizeof(intset)+is->length*is->encoding; +} + #ifdef INTSET_TEST_MAIN #include