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.
()
| 484 | // number of bytes written when invoking WriteTo. You can expect |
| 485 | // that this function is much cheaper computationally than WriteTo. |
| 486 | func (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) |