Function croaring_sys::roaring_bitmap_portable_serialize
source · pub unsafe extern "C" fn roaring_bitmap_portable_serialize(
r: *const roaring_bitmap_t,
buf: *mut c_char
) -> usize
Expand description
Write a bitmap to a char buffer. The output buffer should refer to at least
roaring_bitmap_portable_size_in_bytes(r)
bytes of allocated memory.
Returns how many bytes were written which should match
roaring_bitmap_portable_size_in_bytes(r)
.
This is meant to be compatible with the Java and Go versions: https://github.com/RoaringBitmap/RoaringFormatSpec