// Flush writes all buffered data out to the underlying stream. This
// could result in multiple chunks to be created.
Flush writes all buffered data out to the underlying stream. This
could result in multiple chunks to be created.
// Flush writes all buffered data out to the underlying stream . This // could result in multiple chunks to be created .
func (w *Writer2) Flush() error {
	if w.cstate == stop {
		return errClosed
	}
	for w.written() > 0 {
		if err := w.flushChunk(); err != nil {
			return err
		}
	}
	return nil
}
func ( w * Writer2 ) Flush ( ) error { if w . cstate == stop { return errClosed } for w . written ( ) > 0 { if err := w . flushChunk ( ) ; err != nil { return err } } return nil }
Flush writes all buffered data out to the underlying stream.
Flush writes all buffered data out to the underlying stream .