next returns the next value in the iteration sequence.
()
| 1133 | |
| 1134 | // next returns the next value in the iteration sequence. |
| 1135 | func (ri *runIterator16) next() uint16 { |
| 1136 | next := ri.rc.iv[ri.curIndex].start + ri.curPosInIndex |
| 1137 | |
| 1138 | if ri.curPosInIndex == ri.rc.iv[ri.curIndex].length { |
| 1139 | ri.curPosInIndex = 0 |
| 1140 | ri.curIndex++ |
| 1141 | } else { |
| 1142 | ri.curPosInIndex++ |
| 1143 | } |
| 1144 | |
| 1145 | return next |
| 1146 | } |
| 1147 | |
| 1148 | // peekNext returns the next value in the iteration sequence without advancing the iterator |
| 1149 | func (ri *runIterator16) peekNext() uint16 { |