Added support for roaring bitmap v3 (#2355)
* Integrated RoaringBitmap v3 * Renamed ndpi_bitmap64 ro ndpi_bitmap64_fuse * Fixes to ndpi_bitmap for new roaring library * Fixes for bitmap serialization * Fixed format * Warning fix * Conversion fix * Warning fix * Added check for roaring v3 support * Updated file name * Updated path * Uses clang-9 (instead of clang-7) for builds * Fixed fuzz_ds_bitmap64_fuse * Fixes nDPI printf handling * Disabled printf * Yet another printf fix * Cleaup * Fx for compiling on older platforms * Fixes for old compilers * Initialization changes * Added compiler check * Fixes for old compilers * Inline function is not static inline * Added missing include
This commit is contained in:
@@ -5605,7 +5605,7 @@ void compressedBitmapUnitTest() {
|
||||
size_t ser;
|
||||
char *buf;
|
||||
ndpi_bitmap_iterator *it;
|
||||
u_int32_t value;
|
||||
u_int64_t value;
|
||||
|
||||
for(i=0; i<1000; i++) {
|
||||
u_int32_t v = rand();
|
||||
@@ -5621,12 +5621,12 @@ void compressedBitmapUnitTest() {
|
||||
assert(ser > 0);
|
||||
|
||||
if(trace) printf("len: %u\n", (unsigned int)ser);
|
||||
b1 = ndpi_bitmap_deserialize(buf);
|
||||
b1 = ndpi_bitmap_deserialize(buf, ser);
|
||||
assert(b1);
|
||||
|
||||
assert((it = ndpi_bitmap_iterator_alloc(b)));
|
||||
while(ndpi_bitmap_iterator_next(it, &value)) {
|
||||
if(trace) printf("%u ", value);
|
||||
if(trace) printf("%lu ", (unsigned long)value);
|
||||
}
|
||||
|
||||
if(trace) printf("\n");
|
||||
|
||||
Reference in New Issue
Block a user