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

Template implementation of variable-length integers, following the same format as Google's Protobufs. More...

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

Go to the source code of this file.

Classes

struct  nrg::TVarint< T, class >
 Default undeclared template instance to cause a compilation error for non-integer types. More...
 
struct  nrg::TVarint< T, typename std::enable_if< std::is_unsigned< T >::value >::type >
 Varint template specialisation for unsigned types. More...
 
struct  nrg::TVarint< T, typename std::enable_if< std::is_signed< T >::value >::type >
 Varint template specialisation for signed types that requre zigzagging. More...
 

Typedefs

typedef TVarint< uint64_t > nrg::UVarint
 Typedef for unsigned varints.
 
typedef TVarint< int64_t > nrg::SVarint
 Typedef for signed varints.