Used to build up message strings for FIX.
More...
|
| FIXBuilder (int capacity, byte fieldSeparator) |
| Initializes a new instance of the FIXBuilder class with the specified capacity and field separator. More...
|
|
int | getSize () |
| Returns the number of bytes in the byte array containing the FIX message. More...
|
|
byte[] | getBytes () |
| Returns the byte array containing the FIX message. The number of valid bytes within the buffer is returned from getSize(). More...
|
|
FIXBuilder | append (int tag, byte[] value, int offset, int length) |
| Appends a tag 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...
|
|
Used to build up message strings for FIX.
◆ FIXBuilder()
AMPS.Client.FIXBuilder.FIXBuilder |
( |
int |
capacity, |
|
|
byte |
fieldSeparator |
|
) |
| |
|
inline |
Initializes a new instance of the FIXBuilder class with the specified capacity and field separator.
- Parameters
-
capacity | The initial capacity of the builder. |
fieldSeparator | The field separator byte. |
◆ append() [1/2]
FIXBuilder AMPS.Client.FIXBuilder.append |
( |
int |
tag, |
|
|
byte[] |
value, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
|
inline |
Appends a tag and value pair contained within a byte buffer to the FIX message.
- Parameters
-
tag | The integer FIX tag to append |
value | The byte buffer containing the FIX value to append |
offset | The starting location of the value inside the byte buffer |
length | The length of the value inside the byte buffer |
- Returns
- A reference to this object
- Exceptions
-
ArgumentException | Thrown 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
-
tag | the integer FIX tag to append |
value | the 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
-
ArgumentException | If the tag argument is negative. |
CommandException | If the tag or value argument is not convertible to ISO-8859-1 |
◆ clear()
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
- The 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
- The number of valid bytes in the byte array.
- Returns
The documentation for this class was generated from the following file:
- AMPS.Client/FIXBuilder.cs