|
Condy v1.1.0
C++ Asynchronous System Call Layer for Linux
|
Provided buffer pool. More...
#include <provided_buffers.hpp>
Public Member Functions | |
| ProvidedBufferPool (uint32_t num_buffers, size_t buffer_size, unsigned int flags=0) | |
| Construct a new ProvidedBufferPool object. | |
| size_t | capacity () const |
| Get the capacity of the buffer pool. | |
| size_t | buffer_size () const |
| Get the size of each buffer in the pool. | |
Provided buffer pool.
A provided buffer pool manages a pool of buffers that can be used in asynchronous operations. Only receiving operations can obtain buffers from the pool.
|
inline |
Construct a new ProvidedBufferPool object.
| num_buffers | Number of buffers to allocate in the pool. |
| buffer_size | Size of each buffer in bytes. |
| flags | Optional flags for io_uring buffer registration (default: 0). |