Decodes buffers, that contains FAST messages, to FIX messages.
More...
#include <B2BITS_FastDecoder.h>
|
std::unique_ptr< FIXMessage > | decode (const char *fastMessage, std::size_t size, std::size_t *decoded=NULL) |
| Takes a FAST message from the specified buffer and decodes it to a FIX message.
|
|
System::u32 | decode_u32 (const char *fastMessage, std::size_t size, std::size_t *decoded=NULL) |
| Decodes unsigned int32 at the beginning of the stream.
|
|
| FastDecoder (Impl *impl) |
| Constructor.
|
|
TID | getLastUsedTID () const |
| Returns the last used template id.
|
|
void | operator delete (void *obj) |
| Overloaded delete operator.
|
|
void | resetDictionary () |
| Resets the fast decoder dictionary.
|
|
| ~FastDecoder () |
| Destructor.
|
|
Decodes buffers, that contains FAST messages, to FIX messages.
◆ TID
◆ FastDecoder() [1/2]
Engine::FastDecoder::FastDecoder |
( |
Impl * | impl | ) |
|
◆ ~FastDecoder()
Engine::FastDecoder::~FastDecoder |
( |
| ) |
|
◆ FastDecoder() [2/2]
Engine::FastDecoder::FastDecoder |
( |
const FastDecoder & | | ) |
|
|
protected |
◆ decode()
std::unique_ptr< FIXMessage > Engine::FastDecoder::decode |
( |
const char * | fastMessage, |
|
|
std::size_t | size, |
|
|
std::size_t * | decoded = NULL ) |
Takes a FAST message from the specified buffer and decodes it to a FIX message.
- Parameters
-
[in] | fastMessage | - pointer to array of char that contains FAST message to be decoded. |
[in] | size | - the array size. |
[out] | decoded | - amount bytes were decoded. |
- Returns
- instance of FIXMessage class.
- Exceptions
-
- | an std::exception with detailed information if an error occurs. |
◆ decode_u32()
System::u32 Engine::FastDecoder::decode_u32 |
( |
const char * | fastMessage, |
|
|
std::size_t | size, |
|
|
std::size_t * | decoded = NULL ) |
Decodes unsigned int32 at the beginning of the stream.
- Parameters
-
[in] | fastMessage | - pointer to array of char that contains FAST stream. |
[in] | size | - the array size. |
[out] | decoded | - amount bytes were decoded. |
- Returns
- decoded unsigned int32.
- Exceptions
-
- | an std::exception with detailed information if an error occurs. |
◆ getLastUsedTID()
TID Engine::FastDecoder::getLastUsedTID |
( |
| ) |
const |
Returns the last used template id.
◆ operator delete()
void Engine::FastDecoder::operator delete |
( |
void * | obj | ) |
|
Overloaded delete operator.
◆ operator=()
◆ resetDictionary()
void Engine::FastDecoder::resetDictionary |
( |
| ) |
|
Resets the fast decoder dictionary.