(i int)
| 79 | } |
| 80 | |
| 81 | func (b *BitArray) IsSet(i int) bool { |
| 82 | if i < 0 || i >= b.n { |
| 83 | return false |
| 84 | } |
| 85 | idx, off := ioff(i) |
| 86 | return b.isSet(idx, off) |
| 87 | } |
| 88 | |
| 89 | // All the bits from off (inclusive) and above set. |
| 90 | func upperMask(off uint32) uint64 { |