MCPcopy Create free account
hub / github.com/Workiva/go-datastructures / Nand

Method Nand

bitarray/sparse_bitarray.go:280–286  ·  view source on GitHub ↗

Nand will return the result of doing a bitwise and not of the bit array with the other bit array on each block.

(other BitArray)

Source from the content-addressed store, hash-verified

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.
280func (sba *sparseBitArray) Nand(other BitArray) BitArray {
281 if ba, ok := other.(*sparseBitArray); ok {
282 return nandSparseWithSparseBitArray(sba, ba)
283 }
284
285 return nandSparseWithDenseBitArray(sba, other.(*bitArray))
286}
287
288func (sba *sparseBitArray) IsEmpty() bool {
289 // This works because the and, nand and delete functions only

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected