Function croaring_sys::roaring_bitmap_deserialize_safe
source · pub unsafe extern "C" fn roaring_bitmap_deserialize_safe(
buf: *const c_void,
maxbytes: usize,
) -> *mut roaring_bitmap_t
Expand description
Use with roaring_bitmap_serialize()
.
(See roaring_bitmap_portable_deserialize_safe()
if you want a format that’s
compatible with Java and Go implementations).
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.
The difference with roaring_bitmap_deserialize()
is that this function
checks that the input buffer is a valid bitmap. If the buffer is too small,
NULL is returned.