[][src]Function croaring_sys_mw::roaring_bitmap_overwrite

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

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.