Implements conversion from a chunk to asio::buffer. More...
#include <BufferDetailIterator.hh>
Public Member Functions | |
OutputIteratorHelper () | |
Construct a helper with an unnassigned iterator. | |
OutputIteratorHelper (const BufferImpl::ChunkList::const_iterator &iter) | |
Construct a helper with an iterator. | |
data_type * | data () const |
The location of the first writable byte in this chunk. | |
size_type | size () const |
The size of area that can be written in this chunk. | |
Public Attributes | |
BufferImpl::ChunkList::const_iterator | iter_ |
Conversion operator. |
Implements conversion from a chunk to asio::buffer.
Iterators for an OutputBuffer will iterate over the avro of chunks, so internally they contain an iterator. But the iterator needs to be convertable to an asio buffer for use in boost::asio functions. This class wraps the iterator with a cast operator to do this conversion.
BufferImpl::ChunkList::const_iterator avro::detail::OutputIteratorHelper::iter_ |