Added ndpi_bitmap_copy() API call
This commit is contained in:
@@ -1967,6 +1967,7 @@ extern "C" {
|
||||
|
||||
ndpi_bitmap* ndpi_bitmap_alloc(void);
|
||||
void ndpi_bitmap_free(ndpi_bitmap* b);
|
||||
ndpi_bitmap* ndpi_bitmap_copy(ndpi_bitmap* b);
|
||||
u_int64_t ndpi_bitmap_cardinality(ndpi_bitmap* b);
|
||||
void ndpi_bitmap_set(ndpi_bitmap* b, u_int32_t value);
|
||||
void ndpi_bitmap_unset(ndpi_bitmap* b, u_int32_t value);
|
||||
|
||||
@@ -51,7 +51,13 @@ void ndpi_bitmap_free(ndpi_bitmap* b) {
|
||||
|
||||
/* ******************************************* */
|
||||
|
||||
u_int64_t ndpi_bitmap_cardinality(ndpi_bitmap* b) {
|
||||
ndpi_bitmap* ndpi_bitmap_copy(ndpi_bitmap* b) {
|
||||
return(roaring_bitmap_copy(b));
|
||||
}
|
||||
|
||||
/* ******************************************* */
|
||||
|
||||
U_int64_t ndpi_bitmap_cardinality(ndpi_bitmap* b) {
|
||||
return(roaring_bitmap_get_cardinality((const roaring_bitmap_t *)b));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user