26 #ifndef ODVA_ETHERNETIP_SERIALIZATION_STREAM_WRITER_H
27 #define ODVA_ETHERNETIP_SERIALIZATION_STREAM_WRITER_H
30 #include <boost/shared_ptr.hpp>
31 #include <boost/asio.hpp>
34 using boost::shared_ptr;
35 using boost::asio::const_buffer;
36 using boost::asio::buffer_cast;
37 using boost::asio::buffer_size;
41 namespace serialization {
64 osp_->write((
char*)&v,
sizeof(v));
74 osp_->write((
char*)p, n);
83 osp_->write(buffer_cast<const char*>(b), buffer_size(b));
101 #endif // ODVA_ETHERNETIP_SERIALIZATION_STREAM_WRITER_H