spec: https://github.com/RoaringBitmap/RoaringFormatSpec
()
| 568 | |
| 569 | // spec: https://github.com/RoaringBitmap/RoaringFormatSpec |
| 570 | func (ra *roaringArray) toBytes() ([]byte, error) { |
| 571 | var buf bytes.Buffer |
| 572 | _, err := ra.writeTo(&buf) |
| 573 | return buf.Bytes(), err |
| 574 | } |
| 575 | |
| 576 | // Reads a serialized roaringArray from a byte slice. |
| 577 | func (ra *roaringArray) readFrom(stream internal.ByteInput, cookieHeader ...byte) (int64, error) { |