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

Method ResetWriter

encode.go:121–130  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

119}
120
121func (e *Encoder) ResetWriter(w io.Writer) {
122 e.dict = nil
123 if bw, ok := w.(writer); ok {
124 e.w = bw
125 } else if w == nil {
126 e.w = nil
127 } else {
128 e.w = newByteWriter(w)
129 }
130}
131
132// SetSortMapKeys causes the Encoder to encode map keys in increasing order.
133// Supported map types are:

Callers 1

ResetDictMethod · 0.95

Calls 1

newByteWriterFunction · 0.85

Tested by

no test coverage detected