(i int)
| 67 | } |
| 68 | |
| 69 | func (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 | |
| 77 | func (b *BitArray) isSet(idx int, off uint32) bool { |
| 78 | return b.vs[idx]&(uint64(1)<<off) != 0 |