Go to the documentation of this file.
26 #ifndef ODVA_ETHERNETIP_SERIALIZATION_SERIALIZABLE_BUFFER_H
27 #define ODVA_ETHERNETIP_SERIALIZATION_SERIALIZABLE_BUFFER_H
29 #include <boost/asio.hpp>
36 using boost::asio::mutable_buffer;
37 using boost::asio::buffer_size;
40 namespace serialization {
64 data_ = mutable_buffer(NULL, 0);
73 return buffer_size(
data_);
129 if (length != buffer_size(
data_))
178 #endif // ODVA_ETHERNETIP_SERIALIZATION_SERIALIZABLE_BUFFER_H
virtual mutable_buffer readBuffer(size_t n)
virtual size_t getLength() const
virtual Writer & serialize(Writer &writer) const
virtual Reader & deserialize(Reader &reader)
void deleteAllocatedBuffer()
virtual void readBuffer(mutable_buffer buf)=0
SerializableBuffer(mutable_buffer data)
virtual mutable_buffer getData() const
virtual ~SerializableBuffer()
virtual void setData(mutable_buffer data)
void operator=(mutable_buffer b)
virtual void writeBuffer(const_buffer b)=0
virtual Reader & deserialize(Reader &reader, size_t length)
odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Wed Mar 2 2022 00:38:56