[][src]Function croaring_sys_mw::roaring_bitmap_portable_serialize

pub unsafe extern "C" fn roaring_bitmap_portable_serialize(
    ra: *const roaring_bitmap_t,
    buf: *mut c_char
) -> usize

write a bitmap to a char buffer. The output buffer should refer to at least roaring_bitmap_portable_size_in_bytes(ra) bytes of allocated memory. This is meant to be compatible with the Java and Go versions. Returns how many bytes were written which should be roaring_bitmap_portable_size_in_bytes(ra). See format specification at https://github.com/RoaringBitmap/RoaringFormatSpec