|
Condy v1.8
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 in current Runtime. | |
| ProvidedBufferPool (Runtime &runtime, uint32_t num_buffers, size_t buffer_size, unsigned int flags=0) | |
| Construct a new Provided Buffer Pool object with specified Runtime. | |
| ProvidedBufferPool (void *buffer_data, uint32_t num_buffers, size_t buffer_size, unsigned int flags=0) | |
| Construct with externally provided buffer memory. | |
| ProvidedBufferPool (Runtime &runtime, void *buffer_data, uint32_t num_buffers, size_t buffer_size, unsigned int flags=0) | |
| Construct with externally provided buffer memory and specified Runtime. | |
| size_t | capacity () const noexcept |
| Get the capacity of the buffer pool. | |
| size_t | buffer_size () const noexcept |
| 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.
Definition at line 395 of file provided_buffers.hpp.
|
inline |
Construct a new ProvidedBufferPool object in current Runtime.
| 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). |
Definition at line 404 of file provided_buffers.hpp.
|
inline |
Construct a new Provided Buffer Pool object with specified Runtime.
| runtime | The Runtime to associate with this buffer pool. |
| 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). |
Definition at line 418 of file provided_buffers.hpp.
|
inline |
Construct with externally provided buffer memory.
| buffer_data | Pointer to externally allocated buffer memory. |
| num_buffers | Number of buffers in the pool. |
| buffer_size | Size of each buffer in bytes. |
| flags | Optional flags for io_uring buffer registration. |
Definition at line 433 of file provided_buffers.hpp.
|
inline |
Construct with externally provided buffer memory and specified Runtime.
| runtime | The Runtime to associate with this buffer pool. |
| buffer_data | Pointer to externally allocated buffer memory. |
| num_buffers | Number of buffers in the pool. |
| buffer_size | Size of each buffer in bytes. |
| flags | Optional flags for io_uring buffer registration. |
Definition at line 447 of file provided_buffers.hpp.