#include <B2BITS_FastScp11Decoder.h>
|
class | Listener |
| Default callback class used to notify user about scp message decoding. More...
|
|
◆ TID
◆ Decoder()
Engine::FastScp11::Decoder::Decoder |
( |
Impl * |
impl | ) |
|
|
inlineexplicit |
◆ ~Decoder()
Engine::FastScp11::Decoder::~Decoder |
( |
| ) |
|
◆ decode()
std::unique_ptr<FIXMessage> Engine::FastScp11::Decoder::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 or null if fastMessage contains fast scp messages only.
- Exceptions
-
- | an std::exception with detailed information if an error occurs. |
◆ decode_u32()
System::u32 Engine::FastScp11::Decoder::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::FastScp11::Decoder::getLastUsedTID |
( |
| ) |
const |
Returns the last used template id.
◆ resetDictionary()
void Engine::FastScp11::Decoder::resetDictionary |
( |
| ) |
|
Resets the fast decoder dictionary.