C# Class CqlSharp.Memory.MemoryPool

Pool of memory buffers
Afficher le fichier Open project: reuzel/CqlSharp

Méthodes publiques

Méthode Description
Return ( byte buffer ) : void

Returns the specified buffer.

Take ( int size ) : byte[]

Takes a buffer from the pool, or creates one if the pool is empty, or requested size is larger than BufferSize

ToString ( ) : string

Méthodes protégées

Méthode Description
MemoryPool ( ) : System

Initializes a new instance of the MemoryPool class.

Method Details

MemoryPool() protected méthode

Initializes a new instance of the MemoryPool class.
protected MemoryPool ( ) : System
Résultat System

Return() public méthode

Returns the specified buffer.
public Return ( byte buffer ) : void
buffer byte The buffer.
Résultat void

Take() public méthode

Takes a buffer from the pool, or creates one if the pool is empty, or requested size is larger than BufferSize
public Take ( int size ) : byte[]
size int
Résultat byte[]

ToString() public méthode

public ToString ( ) : string
Résultat string