C# 클래스 Universal.Torrent.Client.Managers.BufferManager

파일 보기 프로젝트 열기: haroldma/Universal.Torrent

공개 프로퍼티들

프로퍼티 타입 설명
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[]