Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
Reimplemented in xtd::io::stream_writer, and xtd::io::string_writer.