(i int)
| 51 | } |
| 52 | |
| 53 | func (bA *BitArray) getIndex(i int) bool { |
| 54 | if i >= bA.Bits { |
| 55 | return false |
| 56 | } |
| 57 | return bA.Elems[i/64]&(uint64(1)<<uint(i%64)) > 0 |
| 58 | } |
| 59 | |
| 60 | // SetIndex sets the bit at index i within the bit array. |
| 61 | // The behavior is undefined if i >= bA.Bits |
no outgoing calls
no test coverage detected