MCPcopy Create free account
hub / github.com/dropbox/godropbox / Clone

Method Clone

container/bitarray/bitarray.go:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (b *BitArray) Clone() *BitArray {
38 vs := make([]uint64, b.n)
39 copy(vs, b.vs)
40 return &BitArray{
41 vs: vs,
42 n: b.n,
43 }
44}
45
46func (b *BitArray) set(idx int, off uint32) {
47 b.vs[idx] |= 1 << off

Callers 1

TestOrEqualsFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestOrEqualsFunction · 0.64