19 #ifndef avro_AvroSerialize_hh__
20 #define avro_AvroSerialize_hh__
23 #include <boost/static_assert.hpp>
35 template <
typename Writer,
typename T>
43 template <
typename Writer,
typename T>
46 BOOST_STATIC_ASSERT(
sizeof(T)==0);
53 template <
typename Writer,
typename T>
58 template <
typename Writer>
60 s.writeBytes(&val[0], val.size());
A bunch of templates and specializations for encoding and decoding specific types.
Definition: AvroParse.hh:31
void serialize(Writer &s, const T &val)
The main serializer entry point function.
Definition: AvroSerialize.hh:36
Define an is_serializable trait for types we can serialize natively.
Class for writing avro data to a stream.
Definition: Writer.hh:35
Definition: AvroTraits.hh:34