C# Класс Universal.Torrent.Client.Managers.BufferManager

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
EmptyBuffer byte[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AllocateBuffers ( int number, BufferType type ) : void
GetBuffer ( byte &buffer, BufferType type ) : void

Allocates an existing buffer from the pool

Описание методов

BufferManager() публичный Метод

The class that controls the allocating and deallocating of all byte[] buffers used in the engine.
public BufferManager ( ) : System
Результат System

FreeBuffer() публичный Метод

public FreeBuffer ( byte buffer ) : void
buffer byte
Результат void

GetBuffer() публичный Метод

public GetBuffer ( int minCapacity ) : byte[]
minCapacity int
Результат byte[]

GetBuffer() публичный Метод

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.
Результат void

Описание свойств

EmptyBuffer публичное статическое свойство

public static byte[] EmptyBuffer
Результат byte[]