#include <Endian.hpp>

Public Member Functions | |
| T | convertFromLittleEndianBuffer (const Uint8 *pucSource) |
| T | convertFromBigEndianBuffer (const Uint8 *pucSource) |
| T | convertFromBuffer (const Uint8 *pucSource) |
| T | toLittleEndian (T tSource) |
| T | toBigEndian (T tSource) |
| void | toLittleEndianStream (T tSource, Uint8 *pucDest) |
| void | toBigEndianStream (T source, Uint8 *pucDest) |
| void | swapBytes (const T tSource, Uint8 *pucDest) |
| Uint16 | swapBytes (Uint16 usSource) |
| Uint32 | swapBytes (Uint32 ulSource) |
| Uint64 | swapBytes (Uint64 uldSource) |
| Int16 | swapBytes (Int16 sSource) |
| Int32 | swapBytes (Int32 lSource) |
| Int64 | swapBytes (Int64 ldSource) |
| T zeus::TEndianHelper< T >::convertFromLittleEndianBuffer | ( | const Uint8 * | pucSource | ) | [inline] |
converts a datatype from little endian stored data
| pucSource | : data in memory as little endian |
| T zeus::TEndianHelper< T >::convertFromBigEndianBuffer | ( | const Uint8 * | pucSource | ) | [inline] |
converts a data type from big endian stored data
| pucSource | : data in memory as big endian |
| T zeus::TEndianHelper< T >::convertFromBuffer | ( | const Uint8 * | pucSource | ) | [inline] |
converts a data type from stored data. The data has been stored by the running system. Therefore the convertion depends on this platform only
| pucSource | : data in memory |
| T zeus::TEndianHelper< T >::toLittleEndian | ( | T | tSource | ) | [inline] |
Converts a datatype value into little endian value
| T zeus::TEndianHelper< T >::toBigEndian | ( | T | tSource | ) | [inline] |
Converts a datatype value into big endian value
| void zeus::TEndianHelper< T >::toLittleEndianStream | ( | T | tSource, | |
| Uint8 * | pucDest | |||
| ) | [inline] |
Converts a datatype value into big little endian and copies the data into the buffer
| tSource | : Source | |
| pucDest | : Buffer to copy data (bust be of size from T) |
| void zeus::TEndianHelper< T >::toBigEndianStream | ( | T | source, | |
| Uint8 * | pucDest | |||
| ) | [inline] |
Converts a datatype value into big big endian and copies the data into the buffer
| tSource | : Source | |
| pucDest | : Buffer to copy data (bust be of size from T) |
| void zeus::TEndianHelper< T >::swapBytes | ( | const T | tSource, | |
| Uint8 * | pucDest | |||
| ) | [inline] |
Swaps bytes of a source and returns the swapped byte array
| Uint16 zeus::TEndianHelper< T >::swapBytes | ( | Uint16 | usSource | ) | [inline] |
swaps an unsigned int16 value
| Uint32 zeus::TEndianHelper< T >::swapBytes | ( | Uint32 | ulSource | ) | [inline] |
swaps an unsigned int32 value
| Uint64 zeus::TEndianHelper< T >::swapBytes | ( | Uint64 | uldSource | ) | [inline] |
swaps an unsigned int64 value
| Int16 zeus::TEndianHelper< T >::swapBytes | ( | Int16 | sSource | ) | [inline] |
swaps an int16 value
| Int32 zeus::TEndianHelper< T >::swapBytes | ( | Int32 | lSource | ) | [inline] |
swaps an int32 value
| Int64 zeus::TEndianHelper< T >::swapBytes | ( | Int64 | ldSource | ) | [inline] |
swaps an int64 value