MCPcopy Create free account
hub / github.com/buger/jsonparser / skipWhitespace

Method skipWhitespace

reader_parser.go:593–604  ·  view source on GitHub ↗

SYS-REQ-116

()

Source from the content-addressed store, hash-verified

591
592// SYS-REQ-116
593func (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.

Callers 6

GetMethod · 0.95
ArrayEachMethod · 0.95
findValueMethod · 0.95
findObjectValueMethod · 0.95
findArrayValueMethod · 0.95
captureValueMethod · 0.95

Calls 2

peekByteMethod · 0.95
isJSONWhitespaceFunction · 0.85

Tested by

no test coverage detected