Flush flushes all of the buffered data to the underlying writer.
()
| 181 | // Flush flushes all of the buffered |
| 182 | // data to the underlying writer. |
| 183 | func (mw *Writer) Flush() error { return mw.flush() } |
| 184 | |
| 185 | // Buffered returns the number bytes in the write buffer |
| 186 | func (mw *Writer) Buffered() int { return len(mw.buf) - mw.wloc } |