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

# mwx::bigendian

`mwx::stream` の `<<` 演算子に対して数値型をビッグエンディアンのバイト列で出力するヘルパークラスです。

```cpp
Serial << mwx::bigendian(0x1234abcdUL);

// output binary -> 0x12 0x34 0xab 0xcd
```

### コンストラクタ

```cpp
template <typename T>
bigendian::bigendian(T v)
```

| パラメータ | 解説                             |
| ----- | ------------------------------ |
| `v`   | `uint16_t` または `uint32_t` の型の値 |
