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

Method Not

libs/bits/bit_array.go:166–173  ·  view source on GitHub ↗

Not returns a bit array resulting from a bitwise Not of the provided bit array.

()

Source from the content-addressed store, hash-verified

164
165// Not returns a bit array resulting from a bitwise Not of the provided bit array.
166func (bA *BitArray) Not() *BitArray {
167 if bA == nil {
168 return nil // Degenerate
169 }
170 bA.mtx.Lock()
171 defer bA.mtx.Unlock()
172 return bA.not()
173}
174
175func (bA *BitArray) not() *BitArray {
176 c := bA.copy()

Callers 1

gossipDataForCatchupMethod · 0.80

Calls 3

notMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected