Function croaring_sys::roaring_bitmap_portable_deserialize

source ยท
pub unsafe extern "C" fn roaring_bitmap_portable_deserialize(
    buf: *const c_char
) -> *mut roaring_bitmap_t
Expand description

Read bitmap from a serialized buffer. In case of failure, NULL is returned.

This function is unsafe in the sense that if there is no valid serialized bitmap at the pointer, then many bytes could be read, possibly causing a buffer overflow. See also roaring_bitmap_portable_deserialize_safe().

This is meant to be compatible with the Java and Go versions: https://github.com/RoaringBitmap/RoaringFormatSpec

This function is endian-sensitive. If you have a big-endian system (e.g., a mainframe IBM s390x), the data format is going to be big-endian and not compatible with little-endian systems.