C# Class CqlSharp.Protocol.Frame

A Cassandra protocol data packet
Inheritance: IDisposable
Afficher le fichier Open project: reuzel/CqlSharp Class Usage Examples

Protected Properties

Свойство Type Description
Reader FrameReader

Méthodes publiques

Méthode Description
Dispose ( ) : void
GetFrameBytes ( bool compress, int compressTreshold ) : PoolMemoryStream

Gets the frame bytes.

WaitOnBodyRead ( ) : Task

Completes when the frame body is read

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
InitializeAsync ( ) : Task

Initialize frame contents from the stream

WriteData ( Stream buffer ) : void

Writes the data to buffer.

Private Methods

Méthode Description
FromStream ( Stream stream ) : Task

Reads a packet from a stream.

GetFrameFromOpcode ( byte protocolVersion, FrameOpcode opcode ) : Frame

Gets the frame from opcode.

PrepareAndInitializeContentAsync ( ) : Task

Prepares the reader/content and initializes content asynchronous.

ReadFrameContentAsync ( ) : Task

Reads the frame content asynchronous.

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetFrameBytes() public méthode

Gets the frame bytes.
public GetFrameBytes ( bool compress, int compressTreshold ) : PoolMemoryStream
compress bool
compressTreshold int
Résultat CqlSharp.Memory.PoolMemoryStream

InitializeAsync() protected abstract méthode

Initialize frame contents from the stream
protected abstract InitializeAsync ( ) : Task
Résultat Task

WaitOnBodyRead() public méthode

Completes when the frame body is read
public WaitOnBodyRead ( ) : Task
Résultat Task

WriteData() protected abstract méthode

Writes the data to buffer.
protected abstract WriteData ( Stream buffer ) : void
buffer Stream The buffer.
Résultat void

Property Details

Reader protected_oe property

Stream holding Frame content
protected FrameReader,CqlSharp.Protocol Reader
Résultat FrameReader