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

Method iand

bitmapcontainer.go:804–817  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

802}
803
804func (bc *bitmapContainer) iand(a container) container {
805 switch x := a.(type) {
806 case *arrayContainer:
807 return bc.iandArray(x)
808 case *bitmapContainer:
809 return bc.iandBitmap(x)
810 case *runContainer16:
811 if x.isFull() {
812 return bc.clone()
813 }
814 return bc.iandRun16(x)
815 }
816 panic("unsupported container type")
817}
818
819func (bc *bitmapContainer) iandRun16(rc *runContainer16) container {
820 rcb := newBitmapContainerFromRun(rc)

Callers

nothing calls this directly

Calls 5

iandArrayMethod · 0.95
iandBitmapMethod · 0.95
cloneMethod · 0.95
iandRun16Method · 0.95
isFullMethod · 0.65

Tested by

no test coverage detected