MCPcopy
hub / github.com/protocolbuffers/protobuf-go / Snapshot

Method Snapshot

internal/encoding/text/encode.go:260–262  ·  view source on GitHub ↗

Snapshot returns the current snapshot for use in Reset.

()

Source from the content-addressed store, hash-verified

258
259// Snapshot returns the current snapshot for use in Reset.
260func (e *Encoder) Snapshot() encoderState {
261 return e.encoderState
262}
263
264// Reset resets the Encoder to the given encoderState from a Snapshot.
265func (e *Encoder) Reset(es encoderState) {

Callers 2

TestResetFunction · 0.95
marshalAnyMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestResetFunction · 0.76