Function croaring_sys::roaring64_bitmap_contains_bulk

source ยท
pub unsafe extern "C" fn roaring64_bitmap_contains_bulk(
    r: *const roaring64_bitmap_t,
    context: *mut roaring64_bulk_context_t,
    val: u64
) -> bool
Expand description

Check if an item is present using context from a previous insert or search for faster search.

context will be used to store information between calls to make bulk operations faster. *context should be zero-initialized before the first call to this function.

Modifying the bitmap in any way (other than -bulk suffixed functions) will invalidate the stored context, calling this function with a non-zero context after doing any modification invokes undefined behavior.

In order to exploit this optimization, the caller should call this function with values with the same high 48 bits of the value consecutively.