Used to build up message strings for FIX.
More...
|
| 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...
|
|
Used to build up message strings for FIX.
◆ 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
-
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
- 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:
- AMPS.Client/FIXBuilder.cs