SYS-REQ-116
()
| 591 | |
| 592 | // SYS-REQ-116 |
| 593 | func (rp *ReaderParser) skipWhitespace() error { |
| 594 | for { |
| 595 | b, err := rp.peekByte(false) |
| 596 | if err != nil { |
| 597 | return err |
| 598 | } |
| 599 | if !isJSONWhitespace(b) { |
| 600 | return nil |
| 601 | } |
| 602 | rp.pos++ |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | // peekByte returns the next byte. When retain is false, fully consumed chunks |
| 607 | // are discarded before reading more data. |
no test coverage detected