| 527 | } |
| 528 | |
| 529 | type intIterator struct { |
| 530 | pos int |
| 531 | hs uint32 |
| 532 | iter shortPeekable |
| 533 | highlowcontainer *roaringArray |
| 534 | |
| 535 | // These embedded iterators per container type help reduce load in the GC. |
| 536 | // This way, instead of making up-to 64k allocations per full iteration |
| 537 | // we get a single allocation and simply reinitialize the appropriate |
| 538 | // iterator and point to it in the generic `iter` member on each key bound. |
| 539 | shortIter shortIterator |
| 540 | runIter runIterator16 |
| 541 | bitmapIter bitmapContainerShortIterator |
| 542 | } |
| 543 | |
| 544 | // HasNext returns true if there are more integers to iterate over |
| 545 | func (ii *intIterator) HasNext() bool { |
nothing calls this directly
no outgoing calls
no test coverage detected