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
Copyright (c) 2013-2016 Regents of the University of California.
shared_ptr< Buffer > BufferPtr
BufferAppendDevice(Buffer &container)
(implementation detail) a Boost.Iostreams.Sink which appends to an ndn::Buffer
shared_ptr< Buffer > buf()
Flush written data to the stream and return shared pointer to the underlying buffer.
implements an output stream that constructs ndn::Buffer
boost::iostreams::sink_tag category
std::streamsize write(const char_type *s, std::streamsize n)
Class representing a general-use automatically managed/resized buffer.