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