careful: range is [firstOfRange,lastOfRange]
(start, last int)
| 103 | |
| 104 | // careful: range is [firstOfRange,lastOfRange] |
| 105 | func rangeOfOnes(start, last int) container { |
| 106 | if start > MaxUint16 { |
| 107 | panic("rangeOfOnes called with start > MaxUint16") |
| 108 | } |
| 109 | if last > MaxUint16 { |
| 110 | panic("rangeOfOnes called with last > MaxUint16") |
| 111 | } |
| 112 | if start < 0 { |
| 113 | panic("rangeOfOnes called with start < 0") |
| 114 | } |
| 115 | if last < 0 { |
| 116 | panic("rangeOfOnes called with last < 0") |
| 117 | } |
| 118 | return newRunContainer16Range(uint16(start), uint16(last)).toEfficientContainer() |
| 119 | } |
| 120 | |
| 121 | type roaringArray struct { |
| 122 | keys []uint16 |
no test coverage detected
searching dependent graphs…