MCPcopy Create free account
hub / github.com/pquerna/ffjson / Reset

Method Reset

fflib/v1/reader.go:52–56  ·  view source on GitHub ↗

Reset the reader, and add new input.

(d []byte)

Source from the content-addressed store, hash-verified

50
51// Reset the reader, and add new input.
52func (r *ffReader) Reset(d []byte) {
53 r.s = d
54 r.i = 0
55 r.l = len(d)
56}
57
58// Calculates the Position with line and line offset,
59// because this isn't counted for performance reasons,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected