Function croaring_sys::roaring_bitmap_add_bulk
source · pub unsafe extern "C" fn roaring_bitmap_add_bulk(
r: *mut roaring_bitmap_t,
context: *mut roaring_bulk_context_t,
val: u32
)
Expand description
Add an item, using context from a previous insert for speed optimization.
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 “key” (high 16 bits of the value) consecutively.