Endianness related definitions. More...
#include "cel_system.h"
Namespaces | |
Celartem | |
Enumerations | |
enum | Celartem::Endian { Celartem::endianBig = 1234, Celartem::endianLittle = 4321, Celartem::endianHost = ENDIAN_HOST } |
Functions | |
template<class T > | |
T | Celartem::swap (const T &n) |
template<class T > | |
T | Celartem::toBig (const T &num) |
template<class T > | |
T | Celartem::toLittle (const T &num) |
template<class T > | |
T | Celartem::fromBig (const T &num) |
template<class T > | |
T | Celartem::fromLittle (const T &num) |
template<class T > | |
void | Celartem::write (void *CEL_RESTRICT buffer, T t, Endian endian) |
template<class T > | |
void | Celartem::writeArray (void *CEL_RESTRICT buffer, T *CEL_RESTRICT array, size_t count, Endian endian) |
template<class T > | |
T | Celartem::read (const void *CEL_RESTRICT buffer, Endian endian) |
template<class T > | |
void | Celartem::swapBytes (const void *CEL_RESTRICT ioBuffer, size_t inBytes) |
Endianness related definitions.