BaseFixWriter

StockSharp.Fix.Native

The base class of the recorder.

Inherits: FixBase

Constructors

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

The base class of the recorder.

stream
The stream.
encoding
Text encoding.
ownsStream
Whether to dispose the stream when this instance is disposed.

Methods

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

Flushes the stream asynchronously.

cancellationToken
CancellationToken

Returns: Task

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

To record the Byte value.

value
Byte value.
cancellationToken
Cancellation token.
WriteBytesAsync
public ValueTask WriteBytesAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken)
result = baseFixWriter.WriteBytesAsync(buffer, cancellationToken)

To record an array of bytes asynchronously.

buffer
Bytes buffer.
cancellationToken
Cancellation token.