#include <uhd/transport/buffer_pool.hpp>
Public Types | |
typedef boost::shared_ptr< buffer_pool > | sptr |
typedef void * | ptr_type |
Public Member Functions | |
virtual | ~buffer_pool (void)=0 |
virtual ptr_type | at (const size_t index) const =0 |
Get a pointer to the buffer start at the specified index. More... | |
virtual size_t | size (void) const =0 |
Get the number of buffers in this pool. More... | |
Static Public Member Functions | |
static sptr | make (const size_t num_buffs, const size_t buff_size, const size_t alignment=16) |
A buffer pool manages memory for a homogeneous set of buffers. Each buffer is the pool start at a 16-byte alignment boundary.
typedef void* uhd::transport::buffer_pool::ptr_type |
typedef boost::shared_ptr<buffer_pool> uhd::transport::buffer_pool::sptr |
|
pure virtual |
|
pure virtual |
Get a pointer to the buffer start at the specified index.
|
static |
Make a new buffer pool.
num_buffs | the number of buffers to allocate |
buff_size | the size of each buffer in bytes |
alignment | the alignment boundary in bytes |
|
pure virtual |
Get the number of buffers in this pool.