|
| | message_buffer (const Allocator &alloc=Allocator()) noexcept(noexcept(Allocator())) |
| | Construct message buffer with a custom allocator.
|
| |
| template<ScatterGatherLike... Bufs> |
| constexpr | message_buffer (const Bufs &...bufs) noexcept |
| | Construct a message_buffer from a list of scatter-gather buffers.
|
| |
| template<ScatterGatherLike Buf> |
| constexpr auto | push_back (const Buf &buf) -> void |
| | Adds a buffer to the collection.
|
| |
| constexpr auto | push_back (native_buffer_type buf) -> void |
| | Adds a native buffer to the collection.
|
| |
| template<typename... Args> |
| constexpr auto | emplace_back (Args &&...args) -> decltype(auto) |
| | Constructs a native buffer in-place at the end of the collection.
|
| |
|
constexpr auto | begin () noexcept -> iterator |
| | Returns an iterator to the beginning of the buffer collection.
|
| |
|
constexpr auto | begin () const noexcept -> const_iterator |
| | Returns a const iterator to the beginning of the buffer collection.
|
| |
|
constexpr auto | end () noexcept -> iterator |
| | Returns an iterator to the end of the buffer collection.
|
| |
|
constexpr auto | end () const noexcept -> const_iterator |
| | Returns a const iterator to the end of the buffer collection.
|
| |
|
constexpr auto | size () const noexcept -> size_type |
| | Returns the number of buffers in the collection.
|
| |
|
constexpr auto | empty () const noexcept -> bool |
| | Checks if the buffer collection is empty.
|
| |
| constexpr | operator bool () const noexcept |
| | Checks if the buffer collection is not empty.
|
| |
| auto | operator+= (std::size_t len) noexcept -> message_buffer & |
| | Advances the buffers by a specified length.
|
| |
template<AllocatorLike Allocator = std::allocator<native_buffer_type>>
class io::socket::message_buffer< Allocator >
A container for managing buffers for scatter-gather I/O operations.
This class provides a convenient way to handle a collection of buffers that can be used in readv/writev (scatter/gather) style I/O operations.