Specialisation of Codec for types that have their own encode
and decode
methods.
#include <nrg_codec.h>
Public Member Functions | |
size_t | encode (Packet &p, const T &data) |
Calls the encode method of data to encode itself into the Packet p . | |
size_t | decode (Packet &p, T &data) |
Calls the decode method of data to decode itself from the Packet p . | |