Serializes this bitmap to 'buf'. Caller must ensure that 'buf' has at least 'BitmapSizeInBytes()' bytes.
| 201 | /// Serializes this bitmap to 'buf'. |
| 202 | /// Caller must ensure that 'buf' has at least 'BitmapSizeInBytes()' bytes. |
| 203 | uint64_t Serialize(uint8_t* buf) { |
| 204 | return roaring64_bitmap_portable_serialize(rbitmap_, reinterpret_cast<char*>(buf)); |
| 205 | } |
| 206 | |
| 207 | /// Deserializes roaring bitmap from 'buf' up to 'max_bytes'. It returns non-OK |
| 208 | /// status on deserialization errors, in which case 'result' remains untouched. |
no outgoing calls