The endian enumeration is a very simple
enum class used to communicate what kind of byte ordering certain parts of the library should use to interpret incoming byte sequences. The C version uses macros and can be found here.
The values are
using ztd::endian = ::std::endian
An endian enumeration.
It may include little, big, or native values. The native value can be the same as the little or big values, but if on a middle-endian machine it may be an implementation-defined “middle endian” value that is not equal to either little or big (as on the PDP-11). We don’t expect many relevant architectures to be using middle-endian, though.