Condy v1.8
C++ Asynchronous System Call Layer for Linux
Loading...
Searching...
No Matches
condy::ZeroCopyRxBuffer Class Reference

Buffer from a ZeroCopyRxBufferPool. More...

#include <zcrx.hpp>

Public Member Functions

void * data () const noexcept
 Get the data pointer of the buffer.
size_t size () const noexcept
 Get the size of the buffer.
void reset () noexcept
 Reset the buffer, returning it to the pool if owned.
bool owns_buffer () const noexcept
 Check if the buffer owns a buffer from a pool.

Detailed Description

Buffer from a ZeroCopyRxBufferPool.

This buffer type is used for buffers obtained from a ZeroCopyRxBufferPool. It automatically returns the buffer to the pool when it is out of scope.

Note
The lifetime of the buffer must not exceed the lifetime of the ZeroCopyRxBufferPool it is associated with.

Definition at line 25 of file zcrx.hpp.

Member Function Documentation

◆ size()

template<typename BufferPool>
size_t condy::detail::ManagedBuffer< BufferPool >::size ( ) const
inlinenoexceptinherited

Get the size of the buffer.

Definition at line 53 of file buffers.hpp.


The documentation for this class was generated from the following file: