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

Method IsSet

container/bitarray/bitarray.go:81–87  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

79}
80
81func (b *BitArray) IsSet(i int) bool {
82 if i < 0 || i >= b.n {
83 return false
84 }
85 idx, off := ioff(i)
86 return b.isSet(idx, off)
87}
88
89// All the bits from off (inclusive) and above set.
90func upperMask(off uint32) uint64 {

Callers 7

TestIsSetFunction · 0.80
TestOrEqualsFunction · 0.80
TestSetClearFunction · 0.80
TestIsAnySetFunction · 0.80
TestIsAnyClearFunction · 0.80
TestSetRangeFunction · 0.80
TestClearRangeFunction · 0.80

Calls 2

isSetMethod · 0.95
ioffFunction · 0.85

Tested by 7

TestIsSetFunction · 0.64
TestOrEqualsFunction · 0.64
TestSetClearFunction · 0.64
TestIsAnySetFunction · 0.64
TestIsAnyClearFunction · 0.64
TestSetRangeFunction · 0.64
TestClearRangeFunction · 0.64