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

Method copy

libs/bits/bit_array.go:98–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (bA *BitArray) copy() *BitArray {
99 c := make([]uint64, len(bA.Elems))
100 copy(c, bA.Elems)
101 return &BitArray{
102 Bits: bA.Bits,
103 Elems: c,
104 }
105}
106
107func (bA *BitArray) copyBits(bits int) *BitArray {
108 c := make([]uint64, numElems(bits))

Callers 3

CopyMethod · 0.95
notMethod · 0.95
ToProtoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected