Type for iterating over the chunks added to a multibuf.
MultiBufs can be thought of as a sequence of "layers", where each layer except the bottommost is comprised of subspans of the layer below it, and the bottommost references the actual memory. This type can be used to retrieve the contiguous byte spans of the topmost layer of a multibuf. It is distinguished from ByteIterator
, which iterates over individual bytes of the topmost layer.
Public Member Functions | |
constexpr | ChunkIterator (const ChunkIterator &other) |
constexpr ChunkIterator & | operator= (const ChunkIterator &other) |
constexpr | operator ChunkIterator< SizeType, true > () const |
constexpr reference | operator* () |
constexpr const_reference | operator* () const |
constexpr pointer | operator-> () |
constexpr const_pointer | operator-> () const |
constexpr ChunkIterator & | operator++ () |
constexpr ChunkIterator | operator++ (int) |
constexpr ChunkIterator & | operator-- () |
constexpr ChunkIterator | operator-- (int) |
Friends | |
template<typename , typename > | |
class | ChunksImpl |
template<typename , bool > | |
class | ByteIterator |
constexpr friend bool | operator== (const ChunkIterator &lhs, const ChunkIterator &rhs) |
constexpr friend bool | operator!= (const ChunkIterator &lhs, const ChunkIterator &rhs) |