2015-12-16 21:39:51 +00:00
|
|
|
#ifndef IOUTIL_H
|
|
|
|
#define IOUTIL_H
|
|
|
|
|
|
|
|
namespace IOUtil
|
|
|
|
{
|
|
|
|
enum EEndianness {
|
2015-12-16 22:21:21 +00:00
|
|
|
eLittleEndian,
|
|
|
|
eBigEndian
|
2015-12-16 21:39:51 +00:00
|
|
|
};
|
2015-12-16 22:21:21 +00:00
|
|
|
extern const EEndianness kSystemEndianness;
|
2015-12-16 21:39:51 +00:00
|
|
|
|
2015-12-16 22:21:21 +00:00
|
|
|
void SwapBytes(short& rVal);
|
|
|
|
void SwapBytes(unsigned short& rVal);
|
|
|
|
void SwapBytes(long& rVal);
|
|
|
|
void SwapBytes(unsigned long& rVal);
|
|
|
|
void SwapBytes(long long& rVal);
|
|
|
|
void SwapBytes(unsigned long long& rVal);
|
|
|
|
void SwapBytes(float& rVal);
|
|
|
|
void SwapBytes(double& rVal);
|
2015-12-16 21:39:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // IOUTIL_H
|