DataStorm
0.1
Data Distribution Service
|
The Decoder template provides a method to decode user types. More...
#include <DataStorm/DataStorm.h>
Static Public Member Functions | |
static T | decode (const std::shared_ptr< Ice::Communicator > &communicator, const std::vector< unsigned char > &value) noexcept |
Decode a value. More... | |
The Decoder template provides a method to decode user types.
The decoder template can be specialized to provide decoding for types that don't support being decoded with Ice. By default, the Ice decoding is used if no Decoder template specialization is provided for the type.
|
staticnoexcept |
Decode a value.
Decoder template implementation.
This method decodes the given byte sequence and returns the resulting value. The communicator parameter is provided to allow the implementation to eventually use the Ice encoding.
communicator | The communicator associated with the node |
value | The byte sequence to decode |