Class BinaryFixWriter
The data recorder which records in the binary FIX protocol format (FAST).
Implements
Inherited Members
Namespace: StockSharp.Fix.Native
Assembly: StockSharp.Fix.Core.dll
Syntax
public class BinaryFixWriter : BaseFixWriter, IFixWriter
Constructors
BinaryFixWriter(Stream, Encoding)
Initializes a new instance of the BinaryFixWriter.
Declaration
public BinaryFixWriter(Stream stream, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | Writing stream. |
Encoding | encoding | Text encoding. |
Methods
Write(FixTags)
Last tag.
Declaration
public void Write(FixTags tag)
Parameters
Type | Name | Description |
---|---|---|
FixTags | tag | Tag. |
Write(Boolean)
To record the Boolean value.
Declaration
public void Write(bool value)
Parameters
Type | Name | Description |
---|---|---|
Boolean | value | Boolean value. |
Write(Char)
To record the Char value.
Declaration
public void Write(char value)
Parameters
Type | Name | Description |
---|---|---|
Char | value | Char value. |
Write(BitArray)
Write Presence Map.
Declaration
public void Write(BitArray map)
Parameters
Type | Name | Description |
---|---|---|
BitArray | map | Presence Map. |
Write(DateTime, FastDateTimeParser)
To record the DateTime value.
Declaration
public void Write(DateTime value, FastDateTimeParser parser)
Parameters
Type | Name | Description |
---|---|---|
DateTime | value | DateTime value. |
Ecng.Common.FastDateTimeParser | parser | Time parser. Required if data will be transferred as string. |
Write(Decimal)
To record the Decimal value.
Declaration
public void Write(Decimal value)
Parameters
Type | Name | Description |
---|---|---|
Decimal | value | Decimal value. |
Write(Int32)
To record the Int32 value.
Declaration
public void Write(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | Int32 value. |
Write(Int64)
To record the Int64 value.
Declaration
public void Write(long value)
Parameters
Type | Name | Description |
---|---|---|
Int64 | value | Int64 value. |
Write(String)
To record the String value.
Declaration
public void Write(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value | String value. |
Write(TimeSpan, FastTimeSpanParser)
To record the TimeSpan value.
Declaration
public void Write(TimeSpan value, FastTimeSpanParser parser)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | value | TimeSpan value. |
Ecng.Common.FastTimeSpanParser | parser | Time parser. Required if data will be transferred as string. |
WriteVector(Byte[])
To record an array of bytes.
Declaration
public void WriteVector(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | bytes | Bytes array. |