BaseFixWriter
StockSharp.Fix.Native
收录者基等.
继承自: FixBase
构造函数
BaseFixWriter
protected BaseFixWriter(Stream stream, Encoding encoding, bool ownsStream)
baseFixWriter = BaseFixWriter(stream, encoding, ownsStream)
收录者基等.
- stream
- 溪来.
- encoding
- 文字编码.
- ownsStream
- 是否在此实例被处理时处理流 。
方法
FlushAsync
public Task FlushAsync(CancellationToken cancellationToken)
result = baseFixWriter.FlushAsync(cancellationToken)
流出同步地流出
- 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
- 取消的代币。