Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ByteConverter Namespace Reference

Functions

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

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 28 of file ByteConverter.h.

References convert().

Referenced by EndianConvertPtrReverse(), and EndianConvertReverse().

◆ convert()

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

Definition at line 19 of file ByteConverter.h.

References convert().

Referenced by apply(), and convert().

◆ convert< 0 >()

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

Definition at line 25 of file ByteConverter.h.

◆ convert< 1 >()

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

Definition at line 26 of file ByteConverter.h.