Horizon Official Technical Documentation
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

◆ apply()

template<typename T >
void ByteConverter::apply ( T *  val)
inline
49 {
50 convert<sizeof(T)>((char *)(val));
51 }

Referenced by TaskContext::Dispatch().

+ Here is the caller graph for this function:

◆ convert()

template<size_t T>
void ByteConverter::convert ( char *  val)
inline
40 {
41 std::swap(*val, *(val + T - 1));
42 convert<T - 2>(val + 1);
43 }
void convert(char *val)
Definition: ByteConverter.hpp:39

References convert().

Referenced by convert().

+ 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
45{ }

◆ convert< 1 >()

template<>
void ByteConverter::convert< 1 > ( char *  )
inline
46{ } // ignore central byte