/      日本語

mwx::flush

Force output of the output buffer
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::simpbuf buffer, 0x00 is output at the end (size does not change)