MCPcopy Index your code
hub / github.com/Workiva/go-datastructures / And

Method And

bitarray/sparse_bitarray.go:270–276  ·  view source on GitHub ↗

And will perform a bitwise and operation with the provided bitarray and return a new result bitarray.

(other BitArray)

Source from the content-addressed store, hash-verified

268// And will perform a bitwise and operation with the provided bitarray and
269// return a new result bitarray.
270func (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.

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected