idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::net::netconn::buffer::segment_view Class Reference

A forward range over a buffer's data segments. More...

#include <idfxx_net/include/idfxx/net/netconn/buffer.hpp>

Classes

class  iterator
 Forward iterator over a buffer's data segments. More...
 

Public Member Functions

iterator begin () const noexcept
 Returns an iterator to the first segment.
 
iterator end () const noexcept
 Returns the past-the-end iterator.
 

Friends

class buffer
 

Detailed Description

A forward range over a buffer's data segments.

Each element is a std::span<const std::byte> referencing one segment of the received data, in order. Iteration does not modify the buffer, so the range may be traversed more than once and the buffer remains usable afterwards.

Obtained from buffer::segments(); not constructed directly.

Definition at line 115 of file buffer.hpp.

Member Function Documentation

◆ begin()

iterator idfxx::net::netconn::buffer::segment_view::begin ( ) const
noexcept

Returns an iterator to the first segment.

◆ end()

iterator idfxx::net::netconn::buffer::segment_view::end ( ) const
inlinenoexcept

Returns the past-the-end iterator.

Definition at line 158 of file buffer.hpp.

Friends And Related Symbol Documentation

◆ buffer

Definition at line 161 of file buffer.hpp.


The documentation for this class was generated from the following file: