C# Class Lawo.EmberPlusSharp.S101.FramingStream

Transparently encodes a single frame.

At construction, the BOF is first appended to the WriteBuffer object passed to FramingStream.CreateAsync. Afterwards, when data is written to this stream then it is first encoded and the encoded form is then appended to the WriteBuffer object.

Caution: DisposeAsync must be called in the end.

Inheritance: BufferStream
Afficher le fichier Open project: Lawo/ember-plus-sharp Class Usage Examples

Private Properties

Свойство Type Description
CreateAsync Task
FramingStream System.Diagnostics.CodeAnalysis
WriteAsync Task
WriteByte int

Méthodes publiques

Méthode Description
DisposeAsync ( CancellationToken cancellationToken ) : Task

Private Methods

Méthode Description
CreateAsync ( WriteBuffer writeBuffer, CancellationToken cancellationToken ) : Task
FramingStream ( WriteBuffer writeBuffer ) : System.Diagnostics.CodeAnalysis
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteByte ( byte buffer, int offset, WriteBuffer writeBuffer ) : int

Method Details

DisposeAsync() public final méthode

public final DisposeAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
Résultat Task