MCPcopy
hub / github.com/RoaringBitmap/roaring / toBytes

Method toBytes

roaringarray.go:570–574  ·  view source on GitHub ↗

spec: https://github.com/RoaringBitmap/RoaringFormatSpec

()

Source from the content-addressed store, hash-verified

568
569// spec: https://github.com/RoaringBitmap/RoaringFormatSpec
570func (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.
577func (ra *roaringArray) readFrom(stream internal.ByteInput, cookieHeader ...byte) (int64, error) {

Callers 1

ToBytesMethod · 0.80

Calls 1

writeToMethod · 0.95

Tested by

no test coverage detected