32 namespace serialization {
43 (*dst_sb) = (*src_sb);
58 throw std::logic_error(
"Cannot get payload from Serializable to SerializableBuffer");
64 std::vector<char> buf(length);
virtual size_t getLength() const
virtual Reader & deserialize(Reader &reader, size_t length)=0
void copy_serializable(Serializable &dst, const Serializable &src)
virtual mutable_buffer getData() const
virtual size_t getLength() const =0
virtual Writer & serialize(Writer &writer) const =0