C# Class Akka.IO.DirectByteBufferPool

INTERNAL API A buffer pool which keeps a free list of direct buffers of a specified default size in a simple fixed size stack. If the stack is full the buffer is de-referenced and available to be freed by normal garbage collection.
Inheritance: IBufferPool
Afficher le fichier Open project: rogeralsing/akka.net Class Usage Examples

Méthodes publiques

Méthode Description
Acquire ( ) : Akka.IO.ByteBuffer
DirectByteBufferPool ( int defaultBufferSize, int maxPoolEntries )
Release ( Akka.IO.ByteBuffer buf ) : void

Private Methods

Méthode Description
Allocate ( int size ) : Akka.IO.ByteBuffer
OfferBufferToPool ( Akka.IO.ByteBuffer buf ) : void
TakeBufferFromPool ( ) : Akka.IO.ByteBuffer

Method Details

Acquire() public méthode

public Acquire ( ) : Akka.IO.ByteBuffer
Résultat Akka.IO.ByteBuffer

DirectByteBufferPool() public méthode

public DirectByteBufferPool ( int defaultBufferSize, int maxPoolEntries )
defaultBufferSize int
maxPoolEntries int

Release() public méthode

public Release ( Akka.IO.ByteBuffer buf ) : void
buf Akka.IO.ByteBuffer
Résultat void