00001 #ifndef QPID_FRAMING_ENDIAN_H
00002 #define QPID_FRAMING_ENDIAN_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "qpid/sys/IntegerTypes.h"
00026
00027 namespace qpid {
00028 namespace framing {
00029
00034 class Endian
00035 {
00036 public:
00037 static uint8_t* convertIfRequired(uint8_t* const octets, int width);
00038 private:
00039 const bool littleEndian;
00040 Endian();
00041 static const Endian instance;
00042 static bool testBigEndian();
00043 };
00044 }}
00045
00046 #endif