MCPcopy 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
20func 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
30func NewUsingSlice(vs []uint64, n int) *BitArray {
31 return &BitArray{

Callers 6

TestNewFunction · 0.70
TestSetClearFunction · 0.70
TestIsAnySetFunction · 0.70
TestIsAnyClearFunction · 0.70
TestSetRangeFunction · 0.70
TestClearRangeFunction · 0.70

Calls 1

sizeFunction · 0.85

Tested by 6

TestNewFunction · 0.56
TestSetClearFunction · 0.56
TestIsAnySetFunction · 0.56
TestIsAnyClearFunction · 0.56
TestSetRangeFunction · 0.56
TestClearRangeFunction · 0.56