AMPS C# Client  5.3.3.4
AMPS C# Client for .NET
AMPS.Client.FIXBuilder Class Reference

Used to build up message strings for FIX. More...

Public Member Functions

 FIXBuilder (int capacity, byte fieldSeparator)
 
int getSize ()
 
byte[] getBytes ()
 
FIXBuilder append (int tag, byte[] value, int offset, int length)
 Appends a tag and and value pair contained within a byte buffer to the FIX message. More...
 
FIXBuilder append (int tag, String value)
 Appends a tag and value pair to the FIX message. More...
 
FIXBuilder clear ()
 Clears the current buffer in the Builder so it can be reused. Capacity is unaffected. More...
 

Detailed Description

Used to build up message strings for FIX.


Member Function Documentation

◆ append() [1/2]

FIXBuilder AMPS.Client.FIXBuilder.append ( int  tag,
byte[]  value,
int  offset,
int  length 
)
inline

Appends a tag and and value pair contained within a byte buffer to the FIX message.

Parameters
tagThe integer FIX tag to append
valueThe byte buffer containing the FIX value to append
offsetThe starting location of the value inside the byte buffer
lengthThe length of the value inside the byte buffer
Returns
A reference to this object
Exceptions
ArgumentExceptionThrown if the tag argument is negative.

◆ append() [2/2]

FIXBuilder AMPS.Client.FIXBuilder.append ( int  tag,
String  value 
)
inline

Appends a tag and value pair to the FIX message.

Parameters
tagthe integer FIX tag to append
valuethe FIX value for the tag to append. The value will be converted to an ISO-8859-1 byte array for writing.
Returns
a reference to this object.
Exceptions
ArgumentExceptionIf the tag argument is negative.
CommandExceptionIf the tag or value argument is not convertible to ISO-8859-1

◆ clear()

FIXBuilder AMPS.Client.FIXBuilder.clear ( )
inline

Clears the current buffer in the Builder so it can be reused. Capacity is unaffected.

Returns
a reference to this object.

◆ getBytes()

byte [] AMPS.Client.FIXBuilder.getBytes ( )
inline

Returns the byte array containing the FIX message. The number of valid bytes within the buffer is returned from getSize().

Returns
byte array containing the FIX message

◆ getSize()

int AMPS.Client.FIXBuilder.getSize ( )
inline

Returns the number of bytes in the byte array containing the FIX message.

Returns
number of valid bytes in the byte array

The documentation for this class was generated from the following file: