IO Buffer Manager, it will work like a memory pool.
More...
#include <IoBufferManager.h>
IO Buffer Manager, it will work like a memory pool.
virtual BufferPtr esnlib::IoBufferManager::GetFreeBuffer |
( |
| ) |
|
|
pure virtual |
virtual IoBufferPtr esnlib::IoBufferManager::GetFreeBuffer |
( |
int |
bufsize | ) |
|
|
pure virtual |
Get a free IO buffer from the pool
- Parameters
-
bufsize | The size of the buffer |
- Returns
- The pointer of the free IO buffer
virtual void esnlib::IoBufferManager::TakeBack |
( |
BufferPtr |
buf | ) |
|
|
pure virtual |
virtual void esnlib::IoBufferManager::TakeBack |
( |
IoBufferPtr |
buf | ) |
|
|
pure virtual |
Take the IO buffer back to the pool
- Parameters
-
buf | The pointer of the IO buffer |
The documentation for this class was generated from the following file: