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

Method Set

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

Source from the content-addressed store, hash-verified

59}
60
61func (b *BitArray) Set(i int) {
62 if i < 0 || i >= b.n {
63 panic(fmt.Sprintf("index %v out of bounds [0:%v]", i, b.n))
64 }
65 idx, off := ioff(i)
66 b.set(idx, off)
67}
68
69func (b *BitArray) Clear(i int) {
70 if i < 0 || i >= b.n {

Callers

nothing calls this directly

Calls 2

setMethod · 0.95
ioffFunction · 0.85

Tested by

no test coverage detected