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

Method xor

bitmapcontainer.go:694–704  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

692}
693
694func (bc *bitmapContainer) xor(a container) container {
695 switch x := a.(type) {
696 case *arrayContainer:
697 return bc.xorArray(x)
698 case *bitmapContainer:
699 return bc.xorBitmap(x)
700 case *runContainer16:
701 return x.xorBitmap(bc)
702 }
703 panic("unsupported container type")
704}
705
706func (bc *bitmapContainer) xorArray(value2 *arrayContainer) container {
707 answer := bc.clone().(*bitmapContainer)

Callers

nothing calls this directly

Calls 2

xorArrayMethod · 0.95
xorBitmapMethod · 0.95

Tested by

no test coverage detected