C# Class Universal.Torrent.Client.Managers.BufferManager

Afficher le fichier Open project: haroldma/Universal.Torrent

Méthodes publiques

Свойство Type Description
EmptyBuffer byte[]

Méthodes publiques

Méthode Description
BufferManager ( ) : System

The class that controls the allocating and deallocating of all byte[] buffers used in the engine.

FreeBuffer ( byte buffer ) : void
GetBuffer ( int minCapacity ) : byte[]
GetBuffer ( byte &buffer, int minCapacity ) : void

Allocates an existing buffer from the pool

Private Methods

Méthode Description
AllocateBuffers ( int number, BufferType type ) : void
GetBuffer ( byte &buffer, BufferType type ) : void

Allocates an existing buffer from the pool

Method Details

BufferManager() public méthode

The class that controls the allocating and deallocating of all byte[] buffers used in the engine.
public BufferManager ( ) : System
Résultat System

FreeBuffer() public méthode

public FreeBuffer ( byte buffer ) : void
buffer byte
Résultat void

GetBuffer() public méthode

public GetBuffer ( int minCapacity ) : byte[]
minCapacity int
Résultat byte[]

GetBuffer() public méthode

Allocates an existing buffer from the pool
The old Buffer should have been recovered before getting a new buffer
public GetBuffer ( byte &buffer, int minCapacity ) : void
buffer byte The byte[]you want the buffer to be assigned to
minCapacity int The minimum capacity.
Résultat void

Property Details

EmptyBuffer public_oe static_oe property

public static byte[] EmptyBuffer
Résultat byte[]