(a container)
| 692 | } |
| 693 | |
| 694 | func (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 | |
| 706 | func (bc *bitmapContainer) xorArray(value2 *arrayContainer) container { |
| 707 | answer := bc.clone().(*bitmapContainer) |