The C++ framework for developing highly scalable, high performance servers on Windows platforms.

TBufferPool Class Template Reference

Inheritance diagram for TBufferPool:
Collaboration diagram for TBufferPool:

List of all members.

template<typename BaseDerivesFromIPoolBuffers>
class JetByteTools::IO::TBufferPool< BaseDerivesFromIPoolBuffers >


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)

Constructor & Destructor Documentation

TBufferPool ( IAllocateBuffer bufferAllocator,
const DWORD  maxPooledBuffers = 0 
) [inline, explicit]

~TBufferPool (  )  [inline, override]


Member Function Documentation

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]


Generated on Sun Sep 12 19:09:22 2021 for The Server Framework - v7.4 by doxygen 1.5.3