C# 클래스 CqlSharp.Protocol.FrameReader

Reader to read values from a socket. Heavily optimized to reduce task creation and byte array allocation
상속: IDisposable
파일 보기 프로젝트 열기: reuzel/CqlSharp 1 사용 예제들

공개 메소드들

메소드 설명
BufferRemainingData ( ) : System.Threading.Tasks.Task
DecompressAsync ( ) : System.Threading.Tasks.Task

Decompresses the frame contents async.

Dispose ( ) : void
FrameReader ( Stream innerStream, int length ) : System
ReadByteAsync ( ) : Task

Reads the byte async.

ReadBytesAsync ( ) : Task

Reads the bytes async.

ReadInetAsync ( ) : Task

Reads the inet async.

ReadIntAsync ( ) : Task

Reads the int async.

ReadShortAsync ( ) : Task

Reads the short async.

ReadShortBytesAsync ( ) : Task

Reads the short bytes async.

ReadStringAsync ( ) : Task
ReadStringListAsync ( ) : Task>

Reads the string list async.

ReadStringMultimapAsync ( ) : IList>>.Task

Reads the string multimap async.

ReadUuidAsync ( ) : Task

Reads the UUID async.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

비공개 메소드들

메소드 설명
CopySegmentToArray ( ) : byte[]

Copies the segment to a new array.

ReadAsync ( byte buffer, int offset, int count ) : Task
ReadByteInternalAsync ( ) : Task

Reads the byte async, awaiting network operations

ReadIntInternalAsync ( ) : Task

Reads the int async, awaiting network operations

ReadSegmentAsync ( int size ) : System.Threading.Tasks.Task

Reads the array segment async.

ReadShortInternalAsync ( ) : Task

Reads the short async, awaiting network operations

ReadStringAsync ( Task lengthTask ) : Task

Reads the string async.

TryGetSegmentFromBuffer ( int size ) : bool

Tries to get a array segment of specific size from the buffer.

메소드 상세

BufferRemainingData() 공개 메소드

public BufferRemainingData ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

DecompressAsync() 공개 메소드

Decompresses the frame contents async.
public DecompressAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool /// true to release both managed and unmanaged resources; false to release only /// unmanaged resources. ///
리턴 void

FrameReader() 공개 메소드

public FrameReader ( Stream innerStream, int length ) : System
innerStream Stream
length int
리턴 System

ReadByteAsync() 공개 메소드

Reads the byte async.
public ReadByteAsync ( ) : Task
리턴 Task

ReadBytesAsync() 공개 메소드

Reads the bytes async.
public ReadBytesAsync ( ) : Task
리턴 Task

ReadInetAsync() 공개 메소드

Reads the inet async.
public ReadInetAsync ( ) : Task
리턴 Task

ReadIntAsync() 공개 메소드

Reads the int async.
public ReadIntAsync ( ) : Task
리턴 Task

ReadShortAsync() 공개 메소드

Reads the short async.
public ReadShortAsync ( ) : Task
리턴 Task

ReadShortBytesAsync() 공개 메소드

Reads the short bytes async.
public ReadShortBytesAsync ( ) : Task
리턴 Task

ReadStringAsync() 공개 메소드

public ReadStringAsync ( ) : Task
리턴 Task

ReadStringListAsync() 공개 메소드

Reads the string list async.
public ReadStringListAsync ( ) : Task>
리턴 Task>

ReadStringMultimapAsync() 공개 메소드

Reads the string multimap async.
public ReadStringMultimapAsync ( ) : IList>>.Task
리턴 IList>>.Task

ReadUuidAsync() 공개 메소드

Reads the UUID async.
public ReadUuidAsync ( ) : Task
리턴 Task