C# Class Microsoft.Azure.Amqp.InternalBufferManager.PooledBufferManager

Inheritance: InternalBufferManager
Show file Open project: Azure/azure-amqp

Public Methods

Method Description
Clear ( ) : void
PooledBufferManager ( long maxMemoryToPool, int maxBufferSize ) : System
ReturnBuffer ( byte buffer ) : void
TakeBuffer ( int bufferSize ) : byte[]

Private Methods

Method Description
ChangeQuota ( BufferPool &bufferPool, int delta ) : void
DecreaseQuota ( BufferPool &bufferPool ) : void
FindMostExcessivePool ( ) : int
FindMostStarvedPool ( ) : int
FindPool ( int desiredBufferSize ) : BufferPool
IncreaseQuota ( BufferPool &bufferPool ) : void
TuneQuotas ( ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

PooledBufferManager() public method

public PooledBufferManager ( long maxMemoryToPool, int maxBufferSize ) : System
maxMemoryToPool long
maxBufferSize int
return System

ReturnBuffer() public method

public ReturnBuffer ( byte buffer ) : void
buffer byte
return void

TakeBuffer() public method

public TakeBuffer ( int bufferSize ) : byte[]
bufferSize int
return byte[]