Function croaring_sys::roaring_bitmap_lazy_xor [] [src]

pub unsafe extern "C" fn roaring_bitmap_lazy_xor(
    x1: *const roaring_bitmap_t,
    x2: *const roaring_bitmap_t
) -> *mut roaring_bitmap_t

Computes the symmetric difference between two bitmaps and returns new bitmap. The caller is responsible for memory management.

The lazy version defers some computations such as the maintenance of the cardinality counts. Thus you need to call roaring_bitmap_repair_after_lazy after executing "lazy" computations. It is safe to repeatedly call roaring_bitmap_lazy_xor_inplace on the result.