MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / Reset

Method Reset

encode.go:101–103  ·  view source on GitHub ↗

Reset discards any buffered data, resets all state, and switches the writer to write to w.

(w io.Writer)

Source from the content-addressed store, hash-verified

99
100// Reset discards any buffered data, resets all state, and switches the writer to write to w.
101func (e *Encoder) Reset(w io.Writer) {
102 e.ResetDict(w, nil)
103}
104
105// ResetDict is like Reset, but also resets the dict.
106func (e *Encoder) ResetDict(w io.Writer, dict map[string]int) {

Callers 6

NewEncoderFunction · 0.95
TestEncoderFunction · 0.45
TestFloatEncodingFunction · 0.45
TestSetSortMapKeysFunction · 0.45
TestSetOmitEmptyFunction · 0.45
MarshalFunction · 0.45

Calls 1

ResetDictMethod · 0.95

Tested by 4

TestEncoderFunction · 0.36
TestFloatEncodingFunction · 0.36
TestSetSortMapKeysFunction · 0.36
TestSetOmitEmptyFunction · 0.36