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

Method init

jsonxt/decode.go:286–293  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

284const phasePanicMsg = "JSON decoder out of sync - data changing underfoot?"
285
286func (d *decodeState) init(data []byte) *decodeState {
287 d.data = data
288 d.off = 0
289 d.savedError = nil
290 d.errorContext.Struct = nil
291 d.errorContext.Field = ""
292 return d
293}
294
295// saveError saves the first err it is called with,
296// for reporting at the end of the unmarshal.

Callers 2

UnmarshalFunction · 0.95
DecodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected