Public Member Functions | |
CSmartBuffer | Allocate () override=0 |
Allocate an instance of IBuffer, remember to call Release() on it when you're done with it. | |
CSmartBuffer | AllocateCustomSizedBuffer (IBuffer::BufferSize bufferSize) override=0 |
virtual CSmartBuffer | Allocate (IAllocateBuffer &allocator)=0 |
virtual CSmartBuffer | AllocateCustomSizedBuffer (IAllocateBuffer &allocator, IBuffer::BufferSize bufferSize)=0 |
virtual void | AddBufferToPool (IBuffer &buffer)=0 |
Protected Member Functions | |
~IPoolBuffers () override | |
We never delete instances of this interface; you must manage the lifetime of the class that implements it. |
~IPoolBuffers | ( | ) | [override, protected] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
CSmartBuffer Allocate | ( | ) | [override, pure virtual] |
Allocate an instance of IBuffer, remember to call Release() on it when you're done with it.
Implements IAllocateBuffer.
Implemented in CNullBufferPool, TAsyncSocket< JetByteTools::Socket::IPoolableStreamSocket, JetByteTools::Socket::IStreamSocketConnectionManager, JetByteTools::Socket::IStreamSocketCallback >, TAsyncSocket< JetByteTools::Socket::TMulticastDatagramHelper< JetByteTools::Socket::IPoolableDatagramSocket >, JetByteTools::Socket::IDatagramSocketConnectionManager, JetByteTools::Socket::IDatagramSocketCallback >, TAsyncSocket< JetByteTools::Socket::IPoolableDatagramServerSocket, JetByteTools::Socket::IDatagramServerSocketConnectionManager, JetByteTools::Socket::IDatagramServerSocketCallback >, and TWebSocketBase< JetByteTools::WebSocket::HyBi::IWebSocket >.
CSmartBuffer AllocateCustomSizedBuffer | ( | IBuffer::BufferSize | bufferSize | ) | [override, pure virtual] |
virtual CSmartBuffer Allocate | ( | IAllocateBuffer & | allocator | ) | [pure virtual] |
Implemented in CNullBufferPool, TAsyncSocket< JetByteTools::Socket::IPoolableStreamSocket, JetByteTools::Socket::IStreamSocketConnectionManager, JetByteTools::Socket::IStreamSocketCallback >, TAsyncSocket< JetByteTools::Socket::TMulticastDatagramHelper< JetByteTools::Socket::IPoolableDatagramSocket >, JetByteTools::Socket::IDatagramSocketConnectionManager, JetByteTools::Socket::IDatagramSocketCallback >, TAsyncSocket< JetByteTools::Socket::IPoolableDatagramServerSocket, JetByteTools::Socket::IDatagramServerSocketConnectionManager, JetByteTools::Socket::IDatagramServerSocketCallback >, and TWebSocketBase< JetByteTools::WebSocket::HyBi::IWebSocket >.
virtual CSmartBuffer AllocateCustomSizedBuffer | ( | IAllocateBuffer & | allocator, | |
IBuffer::BufferSize | bufferSize | |||
) | [pure virtual] |
Implemented in CNullBufferPool.
virtual void AddBufferToPool | ( | IBuffer & | buffer | ) | [pure virtual, inherited] |
Implemented in CNullBufferPool.