> 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-bigendian.md).

# mwx::bigendian

Helper class for `mwx::stream` `<<` operator to output numeric types as big-endian byte strings.

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

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

### constructor

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

| Parameters | Description                              |
| ---------- | ---------------------------------------- |
| `v`        | a value of type `uint16_t` or `uint32_t` |
