C# Class CqlSharp.Protocol.Frame

A Cassandra protocol data packet
Inheritance: IDisposable
Mostra file Open project: reuzel/CqlSharp Class Usage Examples

Protected Properties

Property Type Description
Reader FrameReader

Public Methods

Method Description
Dispose ( ) : void
GetFrameBytes ( bool compress, int compressTreshold ) : PoolMemoryStream

Gets the frame bytes.

WaitOnBodyRead ( ) : Task

Completes when the frame body is read

Protected Methods

Method Description
Dispose ( bool disposing ) : void
InitializeAsync ( ) : Task

Initialize frame contents from the stream

WriteData ( Stream buffer ) : void

Writes the data to buffer.

Private Methods

Method 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 method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetFrameBytes() public method

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

InitializeAsync() protected abstract method

Initialize frame contents from the stream
protected abstract InitializeAsync ( ) : Task
return Task

WaitOnBodyRead() public method

Completes when the frame body is read
public WaitOnBodyRead ( ) : Task
return Task

WriteData() protected abstract method

Writes the data to buffer.
protected abstract WriteData ( Stream buffer ) : void
buffer Stream The buffer.
return void

Property Details

Reader protected_oe property

Stream holding Frame content
protected FrameReader,CqlSharp.Protocol Reader
return FrameReader