OregonCore  revision be9e804-git
Your Favourite TBC server
ByteConverter Namespace Reference

Functions

template<size_t T>
void convert (char *val)
 
template<>
void convert< 0 > (char *)
 
template<>
void convert< 1 > (char *)
 
template<typename T >
void apply (T *val)
 

Function Documentation

template<size_t T>
void ByteConverter::convert ( char *  val)
inline

Definition at line 32 of file ByteConverter.h.

33 {
34  std::swap(*val, *(val + T - 1));
35  convert < T - 2 > (val + 1);
36 }
void convert(char *val)
Definition: ByteConverter.h:32
template<>
void ByteConverter::convert< 0 > ( char *  )
inline

Definition at line 38 of file ByteConverter.h.

38 {}
template<>
void ByteConverter::convert< 1 > ( char *  )
inline

Definition at line 39 of file ByteConverter.h.

39 {} // ignore central byte