A deserializer for a simple binary format. More...
#include <di/serialization/binary_deserializer.h>
Public Types | |
using | DeserializationFormat = BinaryFormat |
Public Member Functions | |
template<concepts::NotDecaysTo< BinaryDeserializer > T> requires (ConstructibleFrom<Reader, T>) | |
constexpr | BinaryDeserializer (T &&reader) |
template<concepts::IntegralOrEnum T> | |
constexpr auto | deserialize (InPlaceType< T >) -> Result< T > |
template<concepts::TupleLike T> requires (concepts::DefaultConstructible<T>) | |
constexpr auto | deserialize (InPlaceType< T >) -> Result< T > |
template<concepts::VariantLike T> | |
constexpr auto | deserialize (InPlaceType< T >) -> Result< T > |
template<concepts::DefaultConstructible T, concepts::InstanceOf< reflection::Fields > M> | |
constexpr auto | deserialize (InPlaceType< T >, M fields) -> Result< T > |
template<concepts::InstanceOf< container::string::StringImpl > Str> | |
constexpr auto | deserialize (InPlaceType< Str >) -> Result< Str > |
template<concepts::Container T> requires (!concepts::InstanceOf<T, container::string::StringImpl>) | |
constexpr auto | deserialize (InPlaceType< T >) -> Result< T > |
constexpr auto | reader () &-> Reader & |
constexpr auto | reader () const &-> Reader const & |
constexpr auto | reader () &&-> Reader && |
A deserializer for a simple binary format.
Reader | The type of the reader to read from. |
This deserializer is for the simple binary format used by the binary serializer. It can deserialize any type that the binary serializer can serialize, which includes containers, string, tuples, variants, integers, and enumerators.
using di::serialization::BinaryDeserializer< Reader >::DeserializationFormat = BinaryFormat |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |