athena/include/utility.hpp

24 lines
475 B
C++
Raw Normal View History

2013-01-26 20:19:24 +00:00
#ifndef __UTILITY_H__
#define __UTILITY_H__
#include <string>
#include "Types.hpp"
bool isEmpty(Int8*, size_t);
unsigned short swapU16(unsigned short val );
short swap16 (short val );
unsigned int swapU32(unsigned int val);
int swap32 (int val );
long long swap64 (long long val);
float swapFloat(float val);
double swapDouble(double val);
bool isSystemBigEndian();
void fillRandom(Uint8 * rndArea, Uint8 count);
#endif