And will perform a bitwise and operation with the provided bitarray and return a new result bitarray.
(other BitArray)
| 268 | // And will perform a bitwise and operation with the provided bitarray and |
| 269 | // return a new result bitarray. |
| 270 | func (sba *sparseBitArray) And(other BitArray) BitArray { |
| 271 | if ba, ok := other.(*sparseBitArray); ok { |
| 272 | return andSparseWithSparseBitArray(sba, ba) |
| 273 | } |
| 274 | |
| 275 | return andSparseWithDenseBitArray(sba, other.(*bitArray)) |
| 276 | } |
| 277 | |
| 278 | // Nand will return the result of doing a bitwise and not of the bit array |
| 279 | // with the other bit array on each block. |
nothing calls this directly
no test coverage detected