[−][src]Function croaring_sys_mw::roaring_bitmap_serialize
pub unsafe extern "C" fn roaring_bitmap_serialize(
ra: *const roaring_bitmap_t,
buf: *mut c_char
) -> usize
write the bitmap to an output pointer, this output buffer should refer to at least roaring_bitmap_size_in_bytes(ra) allocated bytes.
see roaring_bitmap_portable_serialize if you want a format that's compatible with Java and Go implementations
this format has the benefit of being sometimes more space efficient than roaring_bitmap_portable_serialize e.g., when the data is sparse.
Returns how many bytes were written which should be roaring_bitmap_size_in_bytes(ra).