MCPcopy Create free account
hub / github.com/go-json-experiment/json / invalidatePreviousRead

Method invalidatePreviousRead

jsontext/decode.go:261–272  ·  view source on GitHub ↗

invalid starting character for JSON grammar invalidatePreviousRead invalidates buffers returned by Peek and Read calls so that the first byte is an invalid character. This Hyrum-proofs the API against faulty application code that assumes values returned by ReadValue remain valid past subsequent Read

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

PeekKindMethod · 0.80
ReadTokenMethod · 0.80
ReadValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected