WriteTo writes a serialized version of this bitmap to stream. The format is compatible with other RoaringBitmap implementations (Java, C) and is documented here: https://github.com/RoaringBitmap/RoaringFormatSpec
(stream io.Writer)
| 44 | // implementations (Java, C) and is documented here: |
| 45 | // https://github.com/RoaringBitmap/RoaringFormatSpec |
| 46 | func (rb *Bitmap) WriteTo(stream io.Writer) (int64, error) { |
| 47 | return rb.highlowcontainer.writeTo(stream) |
| 48 | } |
| 49 | |
| 50 | // ToBytes returns an array of bytes corresponding to what is written |
| 51 | // when calling WriteTo |