Class DecoderExtension
Extensions to the Decoder class.
Inherited Members
Namespace: OnixS.Fix.Fast
Assembly: OnixS.Fix.Engine.dll
Syntax
public static class DecoderExtension
Methods
TryDecode(Decoder, DecodeResult, ByteBuffer)
Tries to decode the given FAST stream chunk into the corresponding FIX Message.
Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, ByteBuffer buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| Decoder | decoder | Decoder instance to use. |
| DecodeResult | result | Decode result to fill. |
| ByteBuffer | buffer | An array of bytes that contains the source FAST stream chunk. |
Returns
| Type | Description |
|---|---|
| bool | if the decoding successful, if not enough input data.
|
Exceptions
| Type | Condition |
|---|---|
| FastException | If decoding failed. |
TryDecode(Decoder, DecodeResult, ByteBuffer, int)
Tries to decode the given FAST stream chunk into the corresponding FIX Message.
Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, ByteBuffer buffer, int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| Decoder | decoder | Decoder instance to use. |
| DecodeResult | result | Decode result to fill. |
| ByteBuffer | buffer | An array of bytes that contains the source FAST stream chunk. |
| int | offset | The number of bytes from the beginning of the byte array to skip. |
Returns
| Type | Description |
|---|---|
| bool | if the decoding successful, if not enough input data.
|
Exceptions
| Type | Condition |
|---|---|
| FastException | If decoding failed. |
TryDecode(Decoder, DecodeResult, byte[])
Tries to decode the given FAST stream chunk into the corresponding FIX Message.
Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, byte[] buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| Decoder | decoder | Decoder instance to use. |
| DecodeResult | result | Decode result to fill. |
| byte[] | buffer | An array of bytes that contains the source FAST stream chunk. |
Returns
| Type | Description |
|---|---|
| bool | if the decoding successful, if not enough input data.
|
Exceptions
| Type | Condition |
|---|---|
| FastException | If decoding failed. |
TryDecode(Decoder, DecodeResult, byte[], int)
Tries to decode the given FAST stream chunk into the corresponding FIX Message.
Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, byte[] buffer, int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| Decoder | decoder | Decoder instance to use. |
| DecodeResult | result | Decode result to fill. |
| byte[] | buffer | An array of bytes that contains the source FAST stream chunk. |
| int | offset | The number of bytes from the beginning of the byte array to skip. |
Returns
| Type | Description |
|---|---|
| bool | if the decoding successful, if not enough input data.
|
Exceptions
| Type | Condition |
|---|---|
| FastException | If decoding failed. |
TryDecode(Decoder, DecodeResult, byte[], int, int)
Tries to decode the given FAST stream chunk into the corresponding FIX Message.
Declaration
public static bool TryDecode(this Decoder decoder, DecodeResult result, byte[] buffer, int offset, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| Decoder | decoder | Decoder instance to use. |
| DecodeResult | result | Decode result to fill. |
| byte[] | buffer | An array of bytes that contains the source FAST stream chunk. |
| int | offset | The number of bytes from the beginning of the byte array to skip. |
| int | count | The number of bytes to process. |
Returns
| Type | Description |
|---|---|
| bool | if the decoding successful, if not enough input data.
|
Exceptions
| Type | Condition |
|---|---|
| FastException | If decoding failed. |