#include <bufferpool.h>
Keeps track of a pool of buffers.
Definition at line 71 of file bufferpool.h.
◆ clear()
void bt::BufferPool::clear |
( |
| ) |
|
◆ get()
Buffer::Ptr bt::BufferPool::get |
( |
bt::Uint32 |
min_size | ) |
|
Get a buffer for a given size. The buffer returned might be bigger then the requested size.
- Parameters
-
min_size | The minimum size it should be |
- Returns
- A new Buffer
◆ release()
void bt::BufferPool::release |
( |
Buffer::Data |
data, |
|
|
bt::Uint32 |
size |
|
) |
| |
Release a buffer, puts it into the free list.
- Parameters
-
data | The Buffer::Data |
size | The size of the data object |
◆ setWeakPointer()
void bt::BufferPool::setWeakPointer |
( |
QWeakPointer< BufferPool > |
wp | ) |
|
|
inline |
Set the weak pointer to the buffer pool itself.
- Parameters
-
Definition at line 81 of file bufferpool.h.
The documentation for this class was generated from the following file: