LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg_codec.h File Reference

Contains the Codec class, which encodes and decodes types to and from Packets. More...

#include "nrg_core.h"
#include "nrg_varint.h"
#include <string>
#include <type_traits>

Go to the source code of this file.

Classes

struct  nrg::Codec< T, E >
 Encodes and Decodes any type into a Packet object. More...
 
struct  nrg::Codec< T, typename enable_if< has_encode_decode< T >::value >::type >
 Specialisation of Codec for types that have their own encode and decode methods. More...
 
struct  nrg::Codec< char[len]>
 Specialisation of Codec for arrays of char. More...
 
struct  nrg::Codec< std::string >
 Specialisation of Codec for std::string objects. More...