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

Method Or

bitarray/sparse_bitarray.go:260–266  ·  view source on GitHub ↗

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

(other BitArray)

Source from the content-addressed store, hash-verified

258// Or will perform a bitwise or operation with the provided bitarray and
259// return a new result bitarray.
260func (sba *sparseBitArray) Or(other BitArray) BitArray {
261 if ba, ok := other.(*sparseBitArray); ok {
262 return orSparseWithSparseBitArray(sba, ba)
263 }
264
265 return orSparseWithDenseBitArray(sba, other.(*bitArray))
266}
267
268// And will perform a bitwise and operation with the provided bitarray and
269// return a new result bitarray.

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected