Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
30
func
NewUsingSlice(vs []uint64, n int) *BitArray {
31
return
&BitArray{
32
vs: vs[:size(n)],
33
n: n,
34
}
35
}
36
37
func
(b *BitArray) Clone() *BitArray {
38
vs := make([]uint64, b.n)
Callers
1
randArray
Function · 0.85
Calls
1
size
Function · 0.85
Tested by
1
randArray
Function · 0.68