MCPcopy Create free account
hub / github.com/segmentio/encoding / InputOffset

Method InputOffset

json/json.go:486–488  ·  view source on GitHub ↗

InputOffset returns the input stream byte offset of the current decoder position. The offset gives the location of the end of the most recently returned token and the beginning of the next token.

()

Source from the content-addressed store, hash-verified

484// The offset gives the location of the end of the most recently returned token
485// and the beginning of the next token.
486func (dec *Decoder) InputOffset() int64 {
487 return dec.inputOffset
488}
489
490// Encoder is documented at https://golang.org/pkg/encoding/json/#Encoder
491type Encoder struct {

Callers 1

TestDecoderInputOffsetFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestDecoderInputOffsetFunction · 0.76