roaring_bitmap_serialize

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).

extern (C)
size_t
roaring_bitmap_serialize
(,
char* buf
)

Meta