|
Condy v1.3.0
C++ Asynchronous System Call Layer for Linux
|
Provided buffer queue. More...
#include <provided_buffers.hpp>
Public Member Functions | |
| ProvidedBufferQueue (uint32_t capacity, unsigned int flags=0) | |
| Construct a new ProvidedBufferQueue object. | |
| size_t | size () const |
| Get the current size of the buffer queue. | |
| size_t | capacity () const |
| Get the capacity of the buffer queue. | |
| template<typename Buffer> | |
| uint16_t | push (Buffer &&buffer) |
| Push a buffer into the provided buffer queue. | |
Provided buffer queue.
A provided buffer queue manages a queue of buffers that can be used in asynchronous operations. User is responsible for pushing buffers into the queue.
Definition at line 177 of file provided_buffers.hpp.
|
inline |
Construct a new ProvidedBufferQueue object.
| capacity | Number of buffers the queue can hold. |
| flags | Optional flags for io_uring buffer ring registration (default: 0). |
Definition at line 185 of file provided_buffers.hpp.
|
inlineinherited |
Push a buffer into the provided buffer queue.
| Buffer | Type of the buffer |
| buffer | The buffer to be pushed |
| std::logic_error | if the capacity of the queue is exceeded |
Definition at line 112 of file provided_buffers.hpp.