Added ndpi_bitmap_andnot API call
This commit is contained in:
@@ -1983,6 +1983,7 @@ extern "C" {
|
|||||||
ndpi_bitmap* ndpi_bitmap_deserialize(char *buf);
|
ndpi_bitmap* ndpi_bitmap_deserialize(char *buf);
|
||||||
|
|
||||||
void ndpi_bitmap_and(ndpi_bitmap* a, ndpi_bitmap* b_and);
|
void ndpi_bitmap_and(ndpi_bitmap* a, ndpi_bitmap* b_and);
|
||||||
|
void ndpi_bitmap_andnot(ndpi_bitmap* a, ndpi_bitmap* b_and);
|
||||||
void ndpi_bitmap_or(ndpi_bitmap* a, ndpi_bitmap* b_or);
|
void ndpi_bitmap_or(ndpi_bitmap* a, ndpi_bitmap* b_or);
|
||||||
void ndpi_bitmap_xor(ndpi_bitmap* a, ndpi_bitmap* b_xor);
|
void ndpi_bitmap_xor(ndpi_bitmap* a, ndpi_bitmap* b_xor);
|
||||||
|
|
||||||
|
|||||||
@@ -114,6 +114,13 @@ void ndpi_bitmap_and(ndpi_bitmap* a, ndpi_bitmap* b_and) {
|
|||||||
|
|
||||||
/* ******************************************* */
|
/* ******************************************* */
|
||||||
|
|
||||||
|
/* b = b & !b_and */
|
||||||
|
void ndpi_bitmap_andnot(ndpi_bitmap* a, ndpi_bitmap* b_and) {
|
||||||
|
roaring_bitmap_andnot_inplace((ndpi_bitmap*)a, (ndpi_bitmap*)b_and);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ******************************************* */
|
||||||
|
|
||||||
/* b = b | b_or */
|
/* b = b | b_or */
|
||||||
void ndpi_bitmap_or(ndpi_bitmap* a, ndpi_bitmap* b_or) {
|
void ndpi_bitmap_or(ndpi_bitmap* a, ndpi_bitmap* b_or) {
|
||||||
roaring_bitmap_or_inplace((ndpi_bitmap*)a, (ndpi_bitmap*)b_or);
|
roaring_bitmap_or_inplace((ndpi_bitmap*)a, (ndpi_bitmap*)b_or);
|
||||||
|
|||||||
Reference in New Issue
Block a user