MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Clone

Method Clone

pkg/util/bitarray/bitarray.go:95–100  ·  view source on GitHub ↗

Clone makes a copy of the bit array.

()

Source from the content-addressed store, hash-verified

93
94// Clone makes a copy of the bit array.
95func (d BitArray) Clone() BitArray {
96 return BitArray{
97 words: append([]word(nil), d.words...),
98 lastBitsUsed: d.lastBitsUsed,
99 }
100}
101
102// MakeZeroBitArray creates a bit array with the specified bit size.
103func MakeZeroBitArray(bitLen uint) BitArray {

Callers 1

SetBitAtIndexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected