MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / contains

Method contains

bitmapcontainer.go:1092–1097  ·  view source on GitHub ↗
(i uint16)

Source from the content-addressed store, hash-verified

1090}
1091
1092func (bc *bitmapContainer) contains(i uint16) bool { // testbit
1093 x := uint(i)
1094 w := bc.bitmap[x>>6]
1095 mask := uint64(1) << (x & 63)
1096 return (w & mask) != 0
1097}
1098
1099func (bc *bitmapContainer) bitValue(i uint16) uint64 {
1100 x := uint(i)

Callers 2

iremoveMethod · 0.95
intersectsArrayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected