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

Method Or

bitarray/bitarray.go:220–226  ·  view source on GitHub ↗

Or will bitwise or two bit arrays and return a new bit array representing the result.

(other BitArray)

Source from the content-addressed store, hash-verified

218// Or will bitwise or two bit arrays and return a new bit array
219// representing the result.
220func (ba *bitArray) Or(other BitArray) BitArray {
221 if dba, ok := other.(*bitArray); ok {
222 return orDenseWithDenseBitArray(ba, dba)
223 }
224
225 return orSparseWithDenseBitArray(other.(*sparseBitArray), ba)
226}
227
228// And will bitwise and two bit arrays and return a new bit array
229// representing the result.

Callers

nothing calls this directly

Calls 2

orDenseWithDenseBitArrayFunction · 0.85

Tested by

no test coverage detected