|
Crunch
A Message Definition Language for Getting Things Right
|
Decoder class for deserializing one of N possible message types from a buffer. More...
#include <crunch_detail.hpp>
Public Types | |
| using | VariantType = std::variant< Messages... > |
Public Member Functions | |
| constexpr std::optional< Error > | Decode (std::span< const std::byte > buffer, VariantType &out_message) |
Decoder class for deserializing one of N possible message types from a buffer.
| Serdes | The serdes policy to use. |
| Integrity | The integrity policy to use. |
| Messages | The message types which may be deserialized (must have unique message IDs). |