C# 클래스 CqlSharp.Memory.MemoryPool

Pool of memory buffers
파일 보기 프로젝트 열기: reuzel/CqlSharp

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
MemoryPool ( ) : System

Initializes a new instance of the MemoryPool class.

메소드 상세

MemoryPool() 보호된 메소드

Initializes a new instance of the MemoryPool class.
protected MemoryPool ( ) : System
리턴 System

Return() 공개 메소드

Returns the specified buffer.
public Return ( byte buffer ) : void
buffer byte The buffer.
리턴 void

Take() 공개 메소드

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
리턴 byte[]

ToString() 공개 메소드

public ToString ( ) : string
리턴 string