Function croaring_sys::roaring_bitmap_and
source ยท pub unsafe extern "C" fn roaring_bitmap_and(
r1: *const roaring_bitmap_t,
r2: *const roaring_bitmap_t,
) -> *mut roaring_bitmap_t
Expand description
Computes the intersection between two bitmaps and returns new bitmap. The caller is responsible for memory management.
Performance hint: if you are computing the intersection between several bitmaps, two-by-two, it is best to start with the smallest bitmap. You may also rely on roaring_bitmap_and_inplace to avoid creating many temporary bitmaps.