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

Method discardConsumed

reader_parser.go:674–681  ·  view source on GitHub ↗

SYS-REQ-116

()

Source from the content-addressed store, hash-verified

672
673// SYS-REQ-116
674func (rp *ReaderParser) discardConsumed() {
675 if rp.pos == 0 {
676 return
677 }
678 rp.bufStart += int64(rp.pos)
679 rp.buf = rp.buf[rp.pos:]
680 rp.pos = 0
681}
682
683// SYS-REQ-116
684func valueTypeError(want string, value []byte) error {

Callers 3

readObjectKeyMethod · 0.95
captureValueMethod · 0.95
peekByteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected