Public Member Functions | |
TBufferPool (IAllocateBuffer &bufferAllocator, const DWORD maxPooledBuffers=0) | |
~TBufferPool () override | |
CSmartBuffer | Allocate () override |
CSmartBuffer | AllocateCustomSizedBuffer (const IBuffer::BufferSize bufferSize) override |
CSmartBuffer | Allocate (IAllocateBuffer &allocator) override |
CSmartBuffer | AllocateCustomSizedBuffer (IAllocateBuffer &allocator, IBuffer::BufferSize bufferSize) override |
void | AddBufferToPool (IBuffer &buffer) override |
Protected Member Functions | |
void | Purge () |
void | UpdatePoolSize (const DWORD maxPooledBuffers) |
TBufferPool | ( | IAllocateBuffer & | bufferAllocator, | |
const DWORD | maxPooledBuffers = 0 | |||
) | [inline, explicit] |
~TBufferPool | ( | ) | [inline, override] |
CSmartBuffer Allocate | ( | ) | [inline, override] |
CSmartBuffer AllocateCustomSizedBuffer | ( | const IBuffer::BufferSize | bufferSize | ) | [inline, override] |
CSmartBuffer Allocate | ( | IAllocateBuffer & | allocator | ) | [inline, override] |
CSmartBuffer AllocateCustomSizedBuffer | ( | IAllocateBuffer & | allocator, | |
IBuffer::BufferSize | bufferSize | |||
) | [inline, override] |
void AddBufferToPool | ( | IBuffer & | buffer | ) | [inline, override] |
void Purge | ( | ) | [inline, protected] |
void UpdatePoolSize | ( | const DWORD | maxPooledBuffers | ) | [inline, protected] |