jsocketpp 1.0
A cross-platform C++20 socket library.
Loading...
Searching...
No Matches
BufferView.hpp File Reference

Represents a raw writable memory region for scatter/gather I/O. More...

Go to the source code of this file.

Classes

struct  jsocketpp::BufferView
 Represents a raw writable memory region for scatter/gather I/O. More...

Namespaces

namespace  jsocketpp
 A C++ socket library providing Java-style networking interfaces.
namespace  jsocketpp::internal
 Implementation-only utilities and platform abstractions for jsocketpp.

Functions

std::vector< WSABUF > jsocketpp::internal::toWSABUF (const BufferView *buffers, const std::size_t count)
 Convert a raw array of BufferView elements into a WSABUF array for use with Windows socket APIs.
std::vector< WSABUF > jsocketpp::internal::toWSABUF (const std::span< const BufferView > buffers)
 Convert a span of BufferView elements into a WSABUF array (Windows).
std::vector< iovec > jsocketpp::internal::toIOVec (const BufferView *buffers, const std::size_t count)
 Convert a raw array of BufferView elements into an iovec array for POSIX readv/writev.
std::vector< iovec > jsocketpp::internal::toIOVec (const std::span< const BufferView > buffers)
 Convert a span of BufferView elements into an iovec array for POSIX vectorized I/O.

Detailed Description

Represents a raw writable memory region for scatter/gather I/O.