MCPcopy Create free account
hub / github.com/dolthub/doltgresql / And

Function And

postgres/parser/utils/bitarray.go:434–440  ·  view source on GitHub ↗

And computes the logical AND of two bit arrays. The caller must ensure they have the same bit size.

(lhs, rhs BitArray)

Source from the content-addressed store, hash-verified

432// And computes the logical AND of two bit arrays.
433// The caller must ensure they have the same bit size.
434func And(lhs, rhs BitArray) BitArray {
435 res := lhs.Clone()
436 for i, w := range rhs.words {
437 res.words[i] &= w
438 }
439 return res
440}
441
442// Or computes the logical OR of two bit arrays.
443// The caller must ensure they have the same bit size.

Callers

nothing calls this directly

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected