MCPcopy Create free account
hub / github.com/tendermint/tendermint / and

Method and

libs/bits/bit_array.go:157–163  ·  view source on GitHub ↗
(o *BitArray)

Source from the content-addressed store, hash-verified

155}
156
157func (bA *BitArray) and(o *BitArray) *BitArray {
158 c := bA.copyBits(tmmath.MinInt(bA.Bits, o.Bits))
159 for i := 0; i < len(c.Elems); i++ {
160 c.Elems[i] &= o.Elems[i]
161 }
162 return c
163}
164
165// Not returns a bit array resulting from a bitwise Not of the provided bit array.
166func (bA *BitArray) Not() *BitArray {

Callers 1

AndMethod · 0.95

Calls 1

copyBitsMethod · 0.95

Tested by

no test coverage detected