BitStream
|
A trait used to serialize a checksum of the Version
and the rest of the buffer as the first 32 bits. This should be called both first and last when reading and writing to a buffer.
More...
#include <checksum_trait.h>
Static Public Member Functions | |
template<typename Stream > | |
static utility::is_writing_t< Stream > | serialize (Stream &writer) noexcept |
template<typename Stream > | |
static utility::is_reading_t< Stream > | serialize (Stream &reader) noexcept |
Static Public Attributes | |
static constexpr uint32_t | protocol_version = utility::to_big_endian32_const(Version) |
static constexpr uint32_t | protocol_size = sizeof(uint32_t) |
A trait used to serialize a checksum of the Version
and the rest of the buffer as the first 32 bits. This should be called both first and last when reading and writing to a buffer.
Version | A unique version number |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
staticconstexpr |
|
staticconstexpr |