Function croaring_sys::roaring64_bitmap_add_bulk

source ยท
pub unsafe extern "C" fn roaring64_bitmap_add_bulk(
    r: *mut roaring64_bitmap_t,
    context: *mut roaring64_bulk_context_t,
    val: u64
)
Expand description

Add an item, using context from a previous insert for faster insertion.

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.