Function croaring_sys::roaring64_bitmap_internal_validate

source ยท
pub unsafe extern "C" fn roaring64_bitmap_internal_validate(
    r: *const roaring64_bitmap_t,
    reason: *mut *const c_char
) -> bool
Expand description

Perform internal consistency checks.

Returns true if the bitmap is consistent. It may be useful to call this after deserializing bitmaps from untrusted sources. If roaring64_bitmap_internal_validate returns true, then the bitmap is consistent and can be trusted not to cause crashes or memory corruption.

If reason is non-null, it will be set to a string describing the first inconsistency found if any.