(cb func(x uint16) bool)
| 119 | } |
| 120 | |
| 121 | func (bc *bitmapContainer) iterate(cb func(x uint16) bool) bool { |
| 122 | iterator := bitmapContainerShortIterator{bc, bc.NextSetBit(0)} |
| 123 | |
| 124 | for iterator.hasNext() { |
| 125 | if !cb(iterator.next()) { |
| 126 | return false |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | return true |
| 131 | } |
| 132 | |
| 133 | type bitmapContainerShortIterator struct { |
| 134 | ptr *bitmapContainer |
nothing calls this directly
no test coverage detected