scanNext processes the byte at d.data[d.off].
()
| 330 | |
| 331 | // scanNext processes the byte at d.data[d.off]. |
| 332 | func (d *decodeState) scanNext() { |
| 333 | if d.off < len(d.data) { |
| 334 | d.opcode = d.scan.step(&d.scan, d.data[d.off]) |
| 335 | d.off++ |
| 336 | } else { |
| 337 | d.opcode = d.scan.eof() |
| 338 | d.off = len(d.data) + 1 // mark processed EOF with len+1 |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | // scanWhile processes bytes in d.data[d.off:] until it |
| 343 | // receives a scan code not equal to op. |
no test coverage detected