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

Method Size

libs/bits/bit_array.go:40–45  ·  view source on GitHub ↗

Size returns the number of bits in the bitarray

()

Source from the content-addressed store, hash-verified

38
39// Size returns the number of bits in the bitarray
40func (bA *BitArray) Size() int {
41 if bA == nil {
42 return 0
43 }
44 return bA.Bits
45}
46
47// GetIndex returns the bit at index i within the bit array.
48// The behavior is undefined if i >= bA.Bits

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected