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
Mostrar archivo Open project: Lawo/ember-plus-sharp Class Usage Examples

Private Properties

Property Type Description
CreateAsync Task
FramingStream System.Diagnostics.CodeAnalysis
WriteAsync Task
WriteByte int

Public Methods

Method Description
DisposeAsync ( CancellationToken cancellationToken ) : Task

Private Methods

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

public final DisposeAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task