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

Method Clear

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

Source from the content-addressed store, hash-verified

67}
68
69func (b *BitArray) Clear(i int) {
70 if i < 0 || i >= b.n {
71 panic(fmt.Sprintf("index %v out of bounds [0:%v]", i, b.n))
72 }
73 idx, off := ioff(i)
74 b.clear(idx, off)
75}
76
77func (b *BitArray) isSet(idx int, off uint32) bool {
78 return b.vs[idx]&(uint64(1)<<off) != 0

Callers

nothing calls this directly

Calls 2

clearMethod · 0.95
ioffFunction · 0.85

Tested by

no test coverage detected