Added ndpi_bitmap64 support

This commit is contained in:
Luca Deri
2023-09-05 00:21:16 +02:00
parent 4f2ce2d43b
commit c5ebd84fd8
7 changed files with 852 additions and 19 deletions
+15 -1
View File
@@ -1801,11 +1801,12 @@ extern "C" {
/* ******************************* */
u_int32_t ndpi_quick_hash(unsigned char *str, u_int str_len);
u_int64_t ndpi_quick_hash64(char *str, u_int str_len);
u_int32_t ndpi_hash_string(char *str);
u_int32_t ndpi_rev_hash_string(char *str);
u_int32_t ndpi_hash_string_len(char *str, u_int len);
u_int32_t ndpi_murmur_hash(char *str, u_int str_len);
/* ******************************* */
int ndpi_des_init(struct ndpi_des_struct *des, double alpha, double beta, float significance);
@@ -2029,6 +2030,19 @@ extern "C" {
void ndpi_bitmap_iterator_free(ndpi_bitmap* b);
bool ndpi_bitmap_iterator_next(ndpi_bitmap_iterator* i, u_int32_t *value);
/* ******************************* */
/*
Bitmap with 64 bit values based
on https://github.com/FastFilter/xor_singleheader/tree/master
*/
ndpi_bitmap64* ndpi_bitmap64_alloc_size(u_int32_t size);
void ndpi_bitmap64_free(ndpi_bitmap64* b);
void ndpi_bitmap64_set(ndpi_bitmap64* b, u_int64_t value);
bool ndpi_bitmap64_isset(ndpi_bitmap64* b, u_int64_t value);
u_int32_t ndpi_bitmap64_size(ndpi_bitmap64 *b);
/* ******************************* */
/*
Bloom-filter on steroids based on ndpi_bitmap