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

Method serializedSizeInBytes

roaringarray.go:484–490  ·  view source on GitHub ↗

should be dirt cheap

()

Source from the content-addressed store, hash-verified

482
483// should be dirt cheap
484func (ra *roaringArray) serializedSizeInBytes() uint64 {
485 answer := ra.headerSize()
486 for _, c := range ra.containers {
487 answer += uint64(c.serializedSizeInBytes())
488 }
489 return answer
490}
491
492// spec: https://github.com/RoaringBitmap/RoaringFormatSpec
493func (ra *roaringArray) writeTo(w io.Writer) (n int64, err error) {

Callers

nothing calls this directly

Calls 2

headerSizeMethod · 0.95
serializedSizeInBytesMethod · 0.65

Tested by

no test coverage detected