Added Network Byte Order

This commit is contained in:
Steffen Gaisser 2021-05-11 15:02:04 +02:00
parent 08b9e92d25
commit 8b17c40aa6

View File

@ -19,7 +19,10 @@
class SerializeIF { class SerializeIF {
public: public:
enum class Endianness : uint8_t { enum class Endianness : uint8_t {
BIG, LITTLE, MACHINE BIG,
LITTLE,
MACHINE,
NETWORK = BIG // Added for convenience like htons on sockets
}; };
static const uint8_t INTERFACE_ID = CLASS_ID::SERIALIZE_IF; static const uint8_t INTERFACE_ID = CLASS_ID::SERIALIZE_IF;