C# 클래스 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.

상속: BufferStream
파일 보기 프로젝트 열기: Lawo/ember-plus-sharp 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateAsync Task
FramingStream System.Diagnostics.CodeAnalysis
WriteAsync Task
WriteByte int

공개 메소드들

메소드 설명
DisposeAsync ( CancellationToken cancellationToken ) : Task

비공개 메소드들

메소드 설명
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

메소드 상세

DisposeAsync() 공개 최종 메소드

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