MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / GetSizeInBytes

Method GetSizeInBytes

roaring.go:474–480  ·  view source on GitHub ↗

GetSizeInBytes estimates the memory usage of the Bitmap. Note that this might differ slightly from the amount of bytes required for persistent storage

()

Source from the content-addressed store, hash-verified

472// GetSizeInBytes estimates the memory usage of the Bitmap. Note that this
473// might differ slightly from the amount of bytes required for persistent storage
474func (rb *Bitmap) GetSizeInBytes() uint64 {
475 size := uint64(8)
476 for _, c := range rb.highlowcontainer.containers {
477 size += uint64(2) + uint64(c.getSizeInBytes())
478 }
479 return size
480}
481
482// GetSerializedSizeInBytes computes the serialized size in bytes
483// of the Bitmap. It should correspond to the

Callers 3

TestFastAggregationsSizeFunction · 0.95
TestExample2_roaring061Function · 0.45
LessMethod · 0.45

Calls 1

getSizeInBytesMethod · 0.65

Tested by 2

TestFastAggregationsSizeFunction · 0.76
TestExample2_roaring061Function · 0.36