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

Method ToBytes

roaring.go:52–54  ·  view source on GitHub ↗

ToBytes returns an array of bytes corresponding to what is written when calling WriteTo

()

Source from the content-addressed store, hash-verified

50// ToBytes returns an array of bytes corresponding to what is written
51// when calling WriteTo
52func (rb *Bitmap) ToBytes() ([]byte, error) {
53 return rb.highlowcontainer.toBytes()
54}
55
56const (
57 wordSize = uint64(64)

Callers 5

MarshalBinaryMethod · 0.95
generateRandomBitmapFunction · 0.95
BenchmarkAndNotFunction · 0.45

Calls 1

toBytesMethod · 0.80

Tested by 4

generateRandomBitmapFunction · 0.76
BenchmarkAndNotFunction · 0.36