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

Method contains

runcontainer.go:801–804  ·  view source on GitHub ↗

get returns true iff key is in the container.

(key uint16)

Source from the content-addressed store, hash-verified

799
800// get returns true iff key is in the container.
801func (rc *runContainer16) contains(key uint16) bool {
802 _, in, _ := rc.search(int(key))
803 return in
804}
805
806// numIntervals returns the count of intervals in the container.
807func (rc *runContainer16) numIntervals() int {

Callers

nothing calls this directly

Calls 1

searchMethod · 0.95

Tested by

no test coverage detected