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

Method Copy

libs/bits/bit_array.go:89–96  ·  view source on GitHub ↗

Copy returns a copy of the provided bit array.

()

Source from the content-addressed store, hash-verified

87
88// Copy returns a copy of the provided bit array.
89func (bA *BitArray) Copy() *BitArray {
90 if bA == nil {
91 return nil
92 }
93 bA.mtx.Lock()
94 defer bA.mtx.Unlock()
95 return bA.copy()
96}
97
98func (bA *BitArray) copy() *BitArray {
99 c := make([]uint64, len(bA.Elems))

Callers 1

OrMethod · 0.95

Calls 3

copyMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected