This is the multi-page printable view of this section. Click here to print...

Return to the regular view of this page

As of 2025-08-01

mwx::bigendian

Data output in big-endian order
    This is a helper class that outputs numeric types as big-endian byte sequences for the << operator of mwx::stream.
    Serial << mwx::bigendian(0x1234abcdUL);
    
    // output binary -> 0x12 0x34 0xab 0xcd
    

    Constructor

    template <typename T>
    bigendian::bigendian(T v)
    ParameterDescription
    vA value of type uint16_t or uint32_t