hasNext returns false if calling next will panic. It returns true when there is at least one more value available in the iteration sequence.
()
| 1127 | // returns true when there is at least one more value |
| 1128 | // available in the iteration sequence. |
| 1129 | func (ri *runIterator16) hasNext() bool { |
| 1130 | return len(ri.rc.iv) > ri.curIndex+1 || |
| 1131 | (len(ri.rc.iv) == ri.curIndex+1 && ri.rc.iv[ri.curIndex].length >= ri.curPosInIndex) |
| 1132 | } |
| 1133 | |
| 1134 | // next returns the next value in the iteration sequence. |
| 1135 | func (ri *runIterator16) next() uint16 { |
no outgoing calls
no test coverage detected