Flushes the output buffer of
mwx::stream.An instance of a helper class that calls the flush() method.
for (int i = 0; i < 127; ++i) {
Serial << "hello world! (" << i << ")" << twe::endl << twe::flush;
}
- In the case of a serial port, polling wait is performed until output is complete
- In the case of an
mwx::simpbufbuffer,0x00is output at the end (size does not change)