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

Method getContainer

roaring64/roaringarray64.go:198–204  ·  view source on GitHub ↗

unused function: func (ra *roaringArray64) containsKey(x uint32) bool { return (ra.binarySearch(0, int64(len(ra.keys)), x) >= 0) }

(x uint32)

Source from the content-addressed store, hash-verified

196// }
197
198func (ra *roaringArray64) getContainer(x uint32) *roaring.Bitmap {
199 i := ra.binarySearch(0, int64(len(ra.keys)), x)
200 if i < 0 {
201 return nil
202 }
203 return ra.containers[i]
204}
205
206func (ra *roaringArray64) getContainerAtIndex(i int) *roaring.Bitmap {
207 return ra.containers[i]

Callers 1

ContainsMethod · 0.45

Calls 1

binarySearchMethod · 0.95

Tested by

no test coverage detected