Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/dropbox/godropbox
/ New
Function
New
container/bitarray/bitarray.go:20–28 ·
view source on GitHub ↗
(n int)
Source
from the content-addressed store, hash-verified
18
}
19
20
func
New(n int) *BitArray {
21
if
n < 0 {
22
return
nil
23
}
24
return
&BitArray{
25
vs: make([]uint64, size(n)),
26
n: n,
27
}
28
}
29
30
func
NewUsingSlice(vs []uint64, n int) *BitArray {
31
return
&BitArray{
Callers
6
TestNew
Function · 0.70
TestSetClear
Function · 0.70
TestIsAnySet
Function · 0.70
TestIsAnyClear
Function · 0.70
TestSetRange
Function · 0.70
TestClearRange
Function · 0.70
Calls
1
size
Function · 0.85
Tested by
6
TestNew
Function · 0.56
TestSetClear
Function · 0.56
TestIsAnySet
Function · 0.56
TestIsAnyClear
Function · 0.56
TestSetRange
Function · 0.56
TestClearRange
Function · 0.56