C# Класс CqlSharp.Protocol.Frame

A Cassandra protocol data packet
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Reader FrameReader

Открытые методы

Метод Описание
Dispose ( ) : void
GetFrameBytes ( bool compress, int compressTreshold ) : PoolMemoryStream

Gets the frame bytes.

WaitOnBodyRead ( ) : Task

Completes when the frame body is read

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
InitializeAsync ( ) : Task

Initialize frame contents from the stream

WriteData ( Stream buffer ) : void

Writes the data to buffer.

Приватные методы

Метод Описание
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.

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetFrameBytes() публичный Метод

Gets the frame bytes.
public GetFrameBytes ( bool compress, int compressTreshold ) : PoolMemoryStream
compress bool
compressTreshold int
Результат CqlSharp.Memory.PoolMemoryStream

InitializeAsync() защищенный абстрактный Метод

Initialize frame contents from the stream
protected abstract InitializeAsync ( ) : Task
Результат Task

WaitOnBodyRead() публичный Метод

Completes when the frame body is read
public WaitOnBodyRead ( ) : Task
Результат Task

WriteData() защищенный абстрактный Метод

Writes the data to buffer.
protected abstract WriteData ( Stream buffer ) : void
buffer Stream The buffer.
Результат void

Описание свойств

Reader защищенное свойство

Stream holding Frame content
protected FrameReader,CqlSharp.Protocol Reader
Результат FrameReader