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