16 #ifndef DABC_BuffersQueue
17 #define DABC_BuffersQueue
42 std::vector<dabc::Buffer>
vect;
55 for (
unsigned n=0;n<capacity;n++)
63 if (
size ==
vect.size())
return false;
72 if (
size == 0)
return false;
101 for (
unsigned n=0;n<
Size();++n)
Reference on memory from memory pool.
BuffersQueue(unsigned capacity)
bool PushBuffer(Buffer &buf)
std::vector< dabc::Buffer > vect
BufferSize_t TotalBuffersSize() const
bool PopBuffer(Buffer &buf)
unsigned Capacity() const
Buffer Item(unsigned n) const
Returns reference on the Buffer in the queue, one can create any kind of buffer copies from it.