19 #ifndef avro_AvroParse_hh__ 20 #define avro_AvroParse_hh__ 24 #include "ResolvingReader.hh" 35 template <
typename Reader,
typename T>
49 template <
typename Reader,
typename T>
52 static_assert(
sizeof(T) == 0,
"Not a valid type to parse");
55 template <
typename Reader,
typename T>
56 void translatingParse(
Reader &p, T& val,
const std::false_type &)
58 static_assert(
sizeof(T) == 0,
"Not a valid type to parse");
66 template <
typename Reader,
typename T>
71 template <
typename Reader>
72 void parse(
Reader &p, std::vector<uint8_t> &val,
const std::true_type &) {
77 void translatingParse(
ResolvingReader &p, T& val,
const std::true_type &) {
Definition: ResolvingReader.hh:31
A bunch of templates and specializations for encoding and decoding specific types.
Definition: AvroParse.hh:30
This header contains type traits and similar utilities used by the library.
void parse(Reader &p, T &val)
The main parse entry point function.
Definition: AvroParse.hh:36
Define an is_serializable trait for types we can serialize natively.
Definition: AvroTraits.hh:38