24 #ifndef NDN_ENCODING_BUFFER_STREAM_HPP 25 #define NDN_ENCODING_BUFFER_STREAM_HPP 29 #include <boost/iostreams/categories.hpp> 30 #include <boost/iostreams/stream.hpp> 48 write(
const char_type* s, std::streamsize n);
70 class OBufferStream :
public boost::iostreams::stream<detail::BufferAppendDevice>
90 #endif // NDN_ENCODING_BUFFER_STREAM_HPP
BufferAppendDevice(Buffer &container)
(implementation detail) a Boost.Iostreams.Sink which appends to an ndn::Buffer
implements an output stream that constructs ndn::Buffer
boost::iostreams::sink_tag category
std::streamsize write(const char_type *s, std::streamsize n)
General-purpose automatically managed/resized buffer.
shared_ptr< Buffer > BufferPtr