enum byte_order
little_endian
big_endian
native_byte_order() -> constexpr byte_order
template <class T>
to_network_format(T n) -> constexpr T
Converts binary representation of n in native byte order to network byte order if needed.
n
to_host_format(T n) -> constexpr T
Converts binary representation of n in network byte order to native byte order if needed.
is_network_byte_order() -> constexpr bool
Returns true if this archiecture uses network byte order (little-endian). Compile-time constant expression.