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

Method setBits

container/bitarray/bitarray.go:172–174  ·  view source on GitHub ↗
(idx int, off1 uint32, off2 uint32)

Source from the content-addressed store, hash-verified

170}
171
172func (b *BitArray) setBits(idx int, off1 uint32, off2 uint32) {
173 b.vs[idx] |= upperMask(off1) & lowerMask(off2)
174}
175
176func (b *BitArray) clearBits(idx int, off1 uint32, off2 uint32) {
177 b.vs[idx] &= ^(upperMask(off1) & lowerMask(off2))

Callers

nothing calls this directly

Calls 2

upperMaskFunction · 0.85
lowerMaskFunction · 0.85

Tested by

no test coverage detected