26 #ifndef ODVA_ETHERNETIP_SERIALIZATION_READER_H 27 #define ODVA_ETHERNETIP_SERIALIZATION_READER_H 30 #include <boost/asio.hpp> 34 using boost::asio::mutable_buffer;
37 namespace serialization {
51 template <
typename T>
void read(T& v)
63 virtual void readBytes(
void* buf,
size_t n) = 0;
69 virtual void readBuffer(mutable_buffer buf) = 0;
82 virtual void skip(
size_t n) = 0;
87 #endif // ODVA_ETHERNETIP_SERIALIZATION_READER_H
virtual void readBuffer(mutable_buffer buf)=0
virtual void skip(size_t n)=0
virtual void readBytes(void *buf, size_t n)=0
virtual size_t getByteCount()=0