Implements conversion from a chunk to asio::const_buffer. More...
#include <BufferDetailIterator.hh>
Public Member Functions | |
InputIteratorHelper () | |
Construct a helper with an unnassigned iterator. | |
InputIteratorHelper (const BufferImpl::ChunkList::const_iterator &iter) | |
Construct a helper with an iterator. | |
const data_type * | data () const |
The location of valid data in this chunk. | |
size_type | size () const |
The size of valid data in this chunk. | |
Public Attributes | |
BufferImpl::ChunkList::const_iterator | iter_ |
Conversion operator. |
Implements conversion from a chunk to asio::const_buffer.
Iterators for an InputBuffer 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::InputIteratorHelper::iter_ |