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

Method WriteTo

roaring.go:46–48  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

44// implementations (Java, C) and is documented here:
45// https://github.com/RoaringBitmap/RoaringFormatSpec
46func (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

Calls 1

writeToMethod · 0.65