LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::Codec< T, typename enable_if< has_encode_decode< T >::value >::type > Struct Template Reference

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.
 

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