25 #include <boost/make_shared.hpp> 31 using boost::make_shared;
35 using serialization::SerializableBuffer;
51 throw std::length_error(
"Length given too small to parse CPF Item type and length");
55 reader.read(item_length);
56 if (length < item_length + 4)
58 throw std::length_error(
"Length given too small to parse CPF Item Data");
68 reader.read(item_length);
77 item_data_ = make_shared<SerializableBuffer>();
virtual EIP_UINT getDataLength() const
virtual Writer & serialize(Writer &writer) const
void copy_serializable(Serializable &dst, const Serializable &src)
virtual Reader & deserialize(Reader &reader, size_t length)
void getDataAs(Serializable &result)
void deserializeData(Reader &reader, EIP_UINT item_length)
shared_ptr< Serializable > item_data_