Class PreparedMessageUtil
Inheritance
System.Object
PreparedMessageUtil
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: FixAntenna.Core.dll
Syntax
public class PreparedMessageUtil
Constructors
PreparedMessageUtil(SessionParameters)
Default constructor with SessionParameters object. This parameters will be used for building new PreparedMessage
objects.
Declaration
public PreparedMessageUtil(SessionParameters sessionParameters)
Parameters
Fields
BodylengthFieldDefaultMax
Declaration
public const int BodylengthFieldDefaultMax = 999
Field Value
Type |
Description |
System.Int32 |
|
BodylengthFieldLength
Declaration
public const int BodylengthFieldLength = 3
Field Value
Type |
Description |
System.Int32 |
|
EmptyBytes
Declaration
public static readonly byte[] EmptyBytes
Field Value
Type |
Description |
System.Byte[] |
|
Log
Declaration
protected static readonly ILog Log
Field Value
SeqnumFieldLength
Declaration
public readonly int SeqnumFieldLength
Field Value
Type |
Description |
System.Int32 |
|
Methods
GetBytesLength(Int64)
returns size of serialized long in bytes
Declaration
public static int GetBytesLength(long num)
Parameters
Type |
Name |
Description |
System.Int64 |
num |
number
|
Returns
Type |
Description |
System.Int32 |
number of bytes
|
PrepareFullMessageStructure(FixMessage, Byte[], MessageStructure)
Declaration
public virtual MessageStructure PrepareFullMessageStructure(FixMessage template, byte[] msgType, MessageStructure userStructure)
Parameters
Returns
PrepareMessage(FixMessage, MessageStructure)
Builds FixMessage object from exist template. Instance is received from pool.
Declaration
public virtual FixMessage PrepareMessage(FixMessage message, MessageStructure userStructure)
Parameters
Returns
Exceptions
PrepareMessage(FixMessage, MessageStructure, Boolean)
Builds FixMessage object from exist template.
Declaration
public virtual FixMessage PrepareMessage(FixMessage message, MessageStructure userStructure, bool fromPool)
Parameters
Returns
Exceptions
PrepareMessage(FixMessage, Byte[], MessageStructure)
Declaration
public virtual FixMessage PrepareMessage(FixMessage template, byte[] msgType, MessageStructure userStructure)
Parameters
Returns
PrepareMessage(FixMessage, Byte[], MessageStructure, Boolean)
Builds FixMessage object from exist template with specified message type, message structure
and prefilled header and trailer.
Declaration
public virtual FixMessage PrepareMessage(FixMessage template, byte[] msgType, MessageStructure userStructure, bool fromPool)
Parameters
Type |
Name |
Description |
FixMessage |
template |
FixMessage object
|
System.Byte[] |
msgType |
type of the template
|
MessageStructure |
userStructure |
template structure
|
System.Boolean |
fromPool |
|
Returns
Exceptions
PrepareMessage(FixMessage, String, MessageStructure)
Builds FixMessage object from exist template with specified message structure and prefilled
header and trailer.
Declaration
public virtual FixMessage PrepareMessage(FixMessage template, string msgType, MessageStructure userStructure)
Parameters
Returns
Exceptions
PrepareMessage(FixMessage, String, MessageStructure, Boolean)
Builds FixMessage object from exist template with specified message structure and prefilled
header and trailer.
Declaration
public virtual FixMessage PrepareMessage(FixMessage template, string msgType, MessageStructure userStructure, bool fromPool)
Parameters
Returns
Exceptions
PrepareMessage(Byte[], MessageStructure)
Builds FixMessage object with specified type, message structure and prefilled header information
Declaration
public virtual FixMessage PrepareMessage(byte[] msgType, MessageStructure userStructure)
Parameters
Type |
Name |
Description |
System.Byte[] |
msgType |
message type
|
MessageStructure |
userStructure |
message structure
|
Returns
PrepareMessage(Byte[], MessageStructure, Boolean)
Builds FixMessage object with specified type, message structure and prefilled header information
Declaration
public virtual FixMessage PrepareMessage(byte[] msgType, MessageStructure userStructure, bool fromPool)
Parameters
Type |
Name |
Description |
System.Byte[] |
msgType |
message type
|
MessageStructure |
userStructure |
message structure
|
System.Boolean |
fromPool |
|
Returns
PrepareMessage(String, MessageStructure)
Builds FixMessage object with specified type, message structure and prefilled header information
Declaration
public virtual FixMessage PrepareMessage(string msgTypeStr, MessageStructure userStructure)
Parameters
Type |
Name |
Description |
System.String |
msgTypeStr |
message type
|
MessageStructure |
userStructure |
message structure
|
Returns
PrepareMessage(String, MessageStructure, Boolean)
Builds FixMessage object with specified type, message structure and prefilled header information
Declaration
public virtual FixMessage PrepareMessage(string msgTypeStr, MessageStructure userStructure, bool fromPool)
Parameters
Type |
Name |
Description |
System.String |
msgTypeStr |
message type
|
MessageStructure |
userStructure |
message structure
|
System.Boolean |
fromPool |
|
Returns
PrepareMessageFromString(Byte[], MessageStructure)
Declaration
public virtual FixMessage PrepareMessageFromString(byte[] message, MessageStructure structure)
Parameters
Returns
Exceptions
PrepareMessageFromString(Byte[], MessageStructure, Boolean)
Declaration
public virtual FixMessage PrepareMessageFromString(byte[] message, MessageStructure structure, bool fromPool)
Parameters
Type |
Name |
Description |
System.Byte[] |
message |
|
MessageStructure |
structure |
|
System.Boolean |
fromPool |
|
Returns
Exceptions
PrepareMessageFromString(Byte[], Byte[], MessageStructure)
Declaration
public virtual FixMessage PrepareMessageFromString(byte[] message, byte[] type, MessageStructure structure)
Parameters
Type |
Name |
Description |
System.Byte[] |
message |
|
System.Byte[] |
type |
|
MessageStructure |
structure |
|
Returns
Exceptions
PrepareMessageFromString(Byte[], Byte[], MessageStructure, Boolean)
Declaration
public virtual FixMessage PrepareMessageFromString(byte[] message, byte[] type, MessageStructure structure, bool fromPool)
Parameters
Type |
Name |
Description |
System.Byte[] |
message |
|
System.Byte[] |
type |
|
MessageStructure |
structure |
|
System.Boolean |
fromPool |
|
Returns
Exceptions
PrepareMessageFromString(Byte[], String, MessageStructure)
Declaration
public virtual FixMessage PrepareMessageFromString(byte[] message, string type, MessageStructure structure)
Parameters
Type |
Name |
Description |
System.Byte[] |
message |
message string
|
System.String |
type |
message type
|
MessageStructure |
structure |
message structure object
|
Returns
Exceptions
PrepareMessageFromString(Byte[], String, MessageStructure, Boolean)
Declaration
public virtual FixMessage PrepareMessageFromString(byte[] message, string type, MessageStructure structure, bool fromPool)
Parameters
Type |
Name |
Description |
System.Byte[] |
message |
message string
|
System.String |
type |
message type
|
MessageStructure |
structure |
message structure object
|
System.Boolean |
fromPool |
|
Returns
Exceptions