24 #ifndef NDN_CXX_ENCODING_BUFFER_STREAM_HPP
25 #define NDN_CXX_ENCODING_BUFFER_STREAM_HPP
29 #include <boost/iostreams/categories.hpp>
30 #include <boost/iostreams/stream.hpp>
70 class OBufferStream :
public boost::iostreams::stream<detail::BufferAppendDevice>
General-purpose automatically managed/resized buffer.
implements an output stream that constructs ndn::Buffer
shared_ptr< Buffer > buf()
Flush written data to the stream and return shared pointer to the underlying buffer.
(implementation detail) a Boost.Iostreams.Sink which appends to an ndn::Buffer
boost::iostreams::sink_tag category
std::streamsize write(const char_type *s, std::streamsize n)
BufferAppendDevice(Buffer &container)
shared_ptr< Buffer > BufferPtr