X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/f858c11d7d9ca79010dd46a9c8c625e63a9a3ec0..cc4c964b33ac108c9541e31eb2e2420addf9a82e:/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