C# Class CqlSharp.Protocol.FrameReader

Reader to read values from a socket. Heavily optimized to reduce task creation and byte array allocation
Inheritance: IDisposable
Afficher le fichier Open project: reuzel/CqlSharp Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Méthode Description
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.

Method Details

BufferRemainingData() public méthode

public BufferRemainingData ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

DecompressAsync() public méthode

Decompresses the frame contents async.
public DecompressAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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. ///
Résultat void

FrameReader() public méthode

public FrameReader ( Stream innerStream, int length ) : System
innerStream Stream
length int
Résultat System

ReadByteAsync() public méthode

Reads the byte async.
public ReadByteAsync ( ) : Task
Résultat Task

ReadBytesAsync() public méthode

Reads the bytes async.
public ReadBytesAsync ( ) : Task
Résultat Task

ReadInetAsync() public méthode

Reads the inet async.
public ReadInetAsync ( ) : Task
Résultat Task

ReadIntAsync() public méthode

Reads the int async.
public ReadIntAsync ( ) : Task
Résultat Task

ReadShortAsync() public méthode

Reads the short async.
public ReadShortAsync ( ) : Task
Résultat Task

ReadShortBytesAsync() public méthode

Reads the short bytes async.
public ReadShortBytesAsync ( ) : Task
Résultat Task

ReadStringAsync() public méthode

public ReadStringAsync ( ) : Task
Résultat Task

ReadStringListAsync() public méthode

Reads the string list async.
public ReadStringListAsync ( ) : Task>
Résultat Task>

ReadStringMultimapAsync() public méthode

Reads the string multimap async.
public ReadStringMultimapAsync ( ) : IList>>.Task
Résultat IList>>.Task

ReadUuidAsync() public méthode

Reads the UUID async.
public ReadUuidAsync ( ) : Task
Résultat Task