MCPcopy
hub / github.com/tinylib/msgp / Reset

Method Reset

msgp/write.go:316–320  ·  view source on GitHub ↗

Reset changes the underlying writer used by the Writer

(w io.Writer)

Source from the content-addressed store, hash-verified

314
315// Reset changes the underlying writer used by the Writer
316func (mw *Writer) Reset(w io.Writer) {
317 mw.buf = mw.buf[:cap(mw.buf)]
318 mw.w = w
319 mw.wloc = 0
320}
321
322// WriteMapHeader writes a map header of the given
323// size to the writer

Calls

no outgoing calls