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