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

Struct BitArray

libs/bits/bit_array.go:19–23  ·  view source on GitHub ↗

BitArray is a thread-safe implementation of a bit array.

Source from the content-addressed store, hash-verified

17
18// BitArray is a thread-safe implementation of a bit array.
19type BitArray struct {
20 mtx sync.Mutex
21 Bits int `json:"bits"` // NOTE: persisted via reflect, must be exported
22 Elems []uint64 `json:"elems"` // NOTE: persisted via reflect, must be exported
23}
24
25// NewBitArray returns a new bit array.
26// It returns nil if the number of bits is zero.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected