TrinityCore
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)
 

Detailed Description

ByteConverter reverse your byte order. This is use for cross platform where they have different endians.

Function Documentation

◆ apply()

template<typename T >
void ByteConverter::apply ( T *  val)
inline

Definition at line 41 of file ByteConverter.h.

◆ convert()

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

Definition at line 30 of file ByteConverter.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convert< 0 >()

template<>
void ByteConverter::convert< 0 > ( char *  )
inline

Definition at line 38 of file ByteConverter.h.

◆ convert< 1 >()

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

Definition at line 39 of file ByteConverter.h.