code: func (b *Buffer) DumpTo(w io.Writer) (written int, err error) {
  	var n int
  	for _, buf := range b.bufs {
  		if err == nil {
  			n, err = w.Write(buf)
  			written += n
  		}
  		putBuf(buf)
  	}
  
  	if err == nil {
  		n, err = w.Write(b.Buf)
  		written += n
  	}
  	putBuf(b.toPool)
  
  	b.bufs = nil
  	b.Buf = nil
  	b.toPool = nil
  
  	return
  }
docs: // DumpTo outputs the contents of a buffer to a writer and resets the buffer.