Static Public Member Functions | List of all members
mm_messages::Message< T > Struct Template Reference

Template parent and default pass-through encoding/decoding. More...

#include <message.hpp>

Static Public Member Functions

static T decode (const unsigned char *buffer, const unsigned int &size)
static void encode (const T &msg, ByteArray &buffer)

Detailed Description

template<typename T>
struct mm_messages::Message< T >

Template parent and default pass-through encoding/decoding.

Implement serialisations in specialisations of this class.

Template Parameters
T: the data type (e.g. std::string)

Definition at line 46 of file message.hpp.

Member Function Documentation

template<typename T >
static T mm_messages::Message< T >::decode ( const unsigned char *  buffer,
const unsigned int &  size 

Definition at line 50 of file message.hpp.

template<typename T >
static void mm_messages::Message< T >::encode ( const T &  msg,
ByteArray buffer 

Definition at line 47 of file message.hpp.

The documentation for this struct was generated from the following file:

Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:52:10