> For the complete documentation index, see [llms.txt](https://mwx.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mwx.twelite.info/latest_en/api-reference/classes/twe-stream/twe-flush.md).

# mwx::flush

Flush the output buffer of `mwx::stream`. Instance to a helper class that calls the `flush()` method.

```cpp
for (int i = 0; i < 127; ++i) {
    Serial << "hello world! (" << i << ")" << twe::endl << twe::flush;
}
```

* For serial ports, wait polling until output completes.
* For `mwx::simpbuf` buffers, output `0x00` at the end (size is not changed)
