FixBase
StockSharp.Fix.Native
Data reader/writer base class.
Inherits: Disposable
Constructors
FixBase
protected FixBase(Stream stream, Encoding encoding, bool ownsStream)
fixBase = FixBase(stream, encoding, ownsStream)
Data reader/writer base class.
- stream
- The stream.
- encoding
- Text encoding.
- ownsStream
- Whether to dispose the stream when this instance is disposed.
Properties
BytesCount
public int BytesCount { get; set; }
value = fixBase.BytesCount
fixBase.BytesCount = value
Total read/write bytes.
CheckSum
public uint CheckSum { get; set; }
value = fixBase.CheckSum
fixBase.CheckSum = value
Check sum.
CheckSumDisabled
public bool CheckSumDisabled { get; set; }
value = fixBase.CheckSumDisabled
fixBase.CheckSumDisabled = value
CheckSum disabled.
IsDump
public bool IsDump { get; set; }
value = fixBase.IsDump
fixBase.IsDump = value
Gets a value indicating whether the log incoming data required.
IsValueRead
public bool IsValueRead { get; protected set; }
value = fixBase.IsValueRead
fixBase.IsValueRead = value
Whether the tag value was read.
LastTag
public FixTags LastTag { get; protected set; }
value = fixBase.LastTag
fixBase.LastTag = value
Last tag.
MaxBytes
public int MaxBytes { get; set; }
value = fixBase.MaxBytes
fixBase.MaxBytes = value
Gets and sets the maximum allowed bytes per read/write operation.
Methods
CalcCheckSum
protected void CalcCheckSum(ReadOnlySpan<byte> value)
fixBase.CalcCheckSum(value)
Calculate the check sum.
- value
- Buffer.
CalcCheckSum
protected void CalcCheckSum(Span<byte> value)
fixBase.CalcCheckSum(value)
Calculate the check sum.
- value
- Buffer.
CalcCheckSum
protected void CalcCheckSum(byte value)
fixBase.CalcCheckSum(value)
Calculate the check sum.
- value
- New byte.
Dump
protected void Dump(byte value)
fixBase.Dump(value)
Add to the data log a new byte.
- value
- New byte.
Dump
protected void Dump(Span<byte> value)
fixBase.Dump(value)
Add to the data log a news byte.
- value
- Buffer.
Dump
protected void Dump(ReadOnlySpan<byte> value)
fixBase.Dump(value)
Add to the data log a news byte.
- value
- Buffer.
Dump``1
protected void Dump<T>(T value)
fixBase.Dump(value)
Add to the data log a new string.
- value
- Value.