16namespace uhd {
namespace transport {
25 typedef std::shared_ptr<buffer_pool>
sptr;
38 const size_t num_buffs,
const size_t buff_size,
const size_t alignment = 16);
43 return _ptrs.at(index);
53 buffer_pool(std::vector<ptr_type>&& ptrs, std::unique_ptr<
char[]> mem)
54 : _ptrs(
std::move(ptrs)), _mem(
std::move(mem))
58 std::vector<ptr_type> _ptrs;
59 std::unique_ptr<char[]> _mem;
Definition buffer_pool.hpp:23
static sptr make(const size_t num_buffs, const size_t buff_size, const size_t alignment=16)
ptr_type at(const size_t index) const
Get a pointer to the buffer start at the specified index.
Definition buffer_pool.hpp:41
void * ptr_type
Definition buffer_pool.hpp:26
std::shared_ptr< buffer_pool > sptr
Definition buffer_pool.hpp:25
size_t size() const
Get the number of buffers in this pool.
Definition buffer_pool.hpp:47
#define UHD_API
Definition config.h:87
Definition build_info.hpp:12
boost::noncopyable noncopyable
Definition noncopyable.hpp:45