![]() |
jsocketpp 1.0
A cross-platform C++20 socket library.
|
Represents a raw writable memory region for scatter/gather I/O. More...
#include <BufferView.hpp>
Public Attributes | |
void * | data {} |
Pointer to the writable memory region. | |
std::size_t | size {} |
Size in bytes of the writable region. |
Represents a raw writable memory region for scatter/gather I/O.
BufferView is used to describe non-contiguous writable memory ranges for use with vectorized socket operations (e.g., readv, writev, readvAll).
It allows efficient I/O without copying or concatenating buffers, enabling zero-copy messaging and protocol framing.
void* jsocketpp::BufferView::data {} |
Pointer to the writable memory region.
std::size_t jsocketpp::BufferView::size {} |
Size in bytes of the writable region.