MCPcopy Create free account
hub / github.com/blues/note / reset

Method reset

jsonxt/scanner.go:116–121  ·  view source on GitHub ↗

reset prepares the scanner for use. It must be called before calling s.step.

()

Source from the content-addressed store, hash-verified

114// reset prepares the scanner for use.
115// It must be called before calling s.step.
116func (s *scanner) reset() {
117 s.step = stateBeginValue
118 s.parseState = s.parseState[0:0]
119 s.err = nil
120 s.endTop = false
121}
122
123// eof tells the scanner that the end of input has been reached.
124// It returns a scan status just as s.step does.

Callers 5

compactFunction · 0.95
IndentFunction · 0.95
checkValidFunction · 0.80
readValueMethod · 0.80
unmarshalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected