BaseFixReader
StockSharp.Fix.Native
Data reader base class.
Inherits: FixBase
Constructors
BaseFixReader
protected BaseFixReader(Stream stream, Encoding encoding, bool ownsStream)
baseFixReader = BaseFixReader(stream, encoding, ownsStream)
Data reader base class.
- stream
- The stream from which data will be read.
- encoding
- Text encoding.
- ownsStream
- Whether to dispose the stream when this instance is disposed.
Methods
ReadByteAsync
public ValueTask<byte> ReadByteAsync(CancellationToken cancellationToken)
result = baseFixReader.ReadByteAsync(cancellationToken)
Get byte.
- cancellationToken
- Cancellation token.
Returns: Byte.
ReadBytesAsync
public ValueTask ReadBytesAsync(Memory<byte> buffer, CancellationToken cancellationToken)
result = baseFixReader.ReadBytesAsync(buffer, cancellationToken)
Read Byte array value.
- buffer
- Buffer.
- cancellationToken
- Cancellation token.