Reset changes the underlying writer used by the Writer
(w io.Writer)
| 314 | |
| 315 | // Reset changes the underlying writer used by the Writer |
| 316 | func (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 |
no outgoing calls