pub unsafe extern "C" fn roaring_bitmap_overwrite(
    dest: *mut roaring_bitmap_t,
    src: *const roaring_bitmap_t
) -> bool
Expand description

Copies a bitmap from src to dest. It is assumed that the pointer dest is to an already allocated bitmap. The content of the dest bitmap is freed/deleted.

It might be preferable and simpler to call roaring_bitmap_copy except that roaring_bitmap_overwrite can save on memory allocations.

Returns true if successful, or false if there was an error. On failure, the dest bitmap is left in a valid, empty state (even if it was not empty before).