BaseFixWriter

StockSharp.Fix.Native

レコーダーのベースクラス。

継承元: FixBase

コンストラクター

BaseFixWriter
protected BaseFixWriter(Stream stream, Encoding encoding, bool ownsStream)
baseFixWriter = BaseFixWriter(stream, encoding, ownsStream)

レコーダーのベースクラス。

stream
ストリーム。
encoding
テキストエンコーディング。
ownsStream
このインスタンスがdisposed時にストリームをdisposeするかどうか。

メソッド

FlushAsync
public Task FlushAsync(CancellationToken cancellationToken)
result = baseFixWriter.FlushAsync(cancellationToken)

ストリームを非同期的にフラッシュします。

cancellationToken
担当: 佐藤 宏

戻り値: タスク

WriteByteAsync
protected ValueTask WriteByteAsync(byte value, CancellationToken cancellationToken)
result = baseFixWriter.WriteByteAsync(value, cancellationToken)

バイト値を記録する。

value
バイト値。
cancellationToken
キャンセルトークン。
WriteBytesAsync
public ValueTask WriteBytesAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken)
result = baseFixWriter.WriteBytesAsync(buffer, cancellationToken)

バイトの配列を非同期的に記録するには.

buffer
バッファをバイトします。
cancellationToken
キャンセルトークン。