Output data of numeric type in big-endian order to twe::stream
Helper class for mwx::stream << operator to output numeric types as big-endian byte strings.
mwx::stream
<<
Serial << mwx::bigendian(0x1234abcdUL); // output binary -> 0x12 0x34 0xab 0xcd
template <typename T> bigendian::bigendian(T v)
v
a value of type uint16_t or uint32_t
uint16_t
uint32_t
最終更新 4 年前