> 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/v0.1.6/api-reference/classes/twe-stream/twe-flush.md).

# mwx::flush

`mwx::stream` の出力バッファをフラッシュする。`flush()` メソッドを呼び出すヘルパークラスへのインスタンス。

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

* シリアルポートの場合は出力完了までポーリング待ちを行う
* `mwx::simpbuf` バッファの場合は `0x00` を末尾に出力する（サイズは変更しない）
