MCPcopy Index your code
hub / github.com/dropbox/godropbox / NewUsingSlice

Function NewUsingSlice

container/bitarray/bitarray.go:30–35  ·  view source on GitHub ↗
(vs []uint64, n int)

Source from the content-addressed store, hash-verified

28}
29
30func NewUsingSlice(vs []uint64, n int) *BitArray {
31 return &BitArray{
32 vs: vs[:size(n)],
33 n: n,
34 }
35}
36
37func (b *BitArray) Clone() *BitArray {
38 vs := make([]uint64, b.n)

Callers 1

randArrayFunction · 0.85

Calls 1

sizeFunction · 0.85

Tested by 1

randArrayFunction · 0.68