00001 #include "Encoding.h" 00002 00003 namespace castor { 00004 00005 Endianness endianness() { 00006 00007 if (__BYTE_ORDER == __LITTLE_ENDIAN) return endian_little; 00008 if (__BYTE_ORDER == __BIG_ENDIAN) return endian_big; 00009 00010 return endian_undefined; 00011 } 00012 00013 } 00014