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

Method GetSerializedSizeInBytes

roaring.go:486–488  ·  view source on GitHub ↗

GetSerializedSizeInBytes computes the serialized size in bytes of the Bitmap. It should correspond to the number of bytes written when invoking WriteTo. You can expect that this function is much cheaper computationally than WriteTo.

()

Source from the content-addressed store, hash-verified

484// number of bytes written when invoking WriteTo. You can expect
485// that this function is much cheaper computationally than WriteTo.
486func (rb *Bitmap) GetSerializedSizeInBytes() uint64 {
487 return rb.highlowcontainer.serializedSizeInBytes()
488}
489
490// BoundSerializedSizeInBytes returns an upper bound on the serialized size in bytes
491// assuming that one wants to store "cardinality" integers in [0, universe_size)

Calls 1

serializedSizeInBytesMethod · 0.65