30 #include "Portability.h" 32 #include "Serialization.h" 33 #include "SerializationOps.h" 36 #ifndef DOXYGEN_SHOULD_SKIP_THIS 65 deserializer | type | data;
66 assert(T::type == type);
71 void is(
const T& data) {
76 serializer | type |
const_cast<T&
>(data);
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS A deserializer from a binary file.
Definition: Serialization.h:153
Id getType()
Definition: Packet.h:48
void is(const T &data)
Definition: Packet.h:71
uint64_t Id
An identifier.
Definition: Id.h:39
A packet of bytes.
Definition: Packet.h:44
A serializer to a binary file.
Definition: Serialization.h:45
The namespace for gf classes.
Definition: Action.h:35
Buffer output stream.
Definition: Streams.h:266
constexpr Id InvalidId
The invalid id (which is 0)
Definition: Id.h:45
std::vector< uint8_t > bytes
Definition: Packet.h:46
T as()
Definition: Packet.h:60