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

Function getSizeInBytesFromCardinality

util.go:42–49  ·  view source on GitHub ↗

doesn't apply to runContainers

(card int)

Source from the content-addressed store, hash-verified

40
41// doesn't apply to runContainers
42func getSizeInBytesFromCardinality(card int) int {
43 if card > arrayDefaultMaxSize {
44 // bitmapContainer
45 return maxCapacity / 8
46 }
47 // arrayContainer
48 return 2 * card
49}
50
51func fill(arr []uint64, val uint64) {
52 for i := range arr {

Callers 1

writeToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…