00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef GEOS_IO_BYTEORDERVALUES_H
00018 #define GEOS_IO_BYTEORDERVALUES_H
00019
00020 #include <geos/export.h>
00021
00022 #include <geos/platform.h>
00023
00024 namespace geos {
00025 namespace io {
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class GEOS_DLL ByteOrderValues {
00036
00037 public:
00038
00039 static int ENDIAN_BIG;
00040 static int ENDIAN_LITTLE;
00041
00042 static int getInt(const unsigned char *buf, int byteOrder);
00043 static void putInt(int intValue, unsigned char *buf, int byteOrder);
00044
00045 static int64 getLong(const unsigned char *buf, int byteOrder);
00046 static void putLong(int64 longValue, unsigned char *buf, int byteOrder);
00047
00048 static double getDouble(const unsigned char *buf, int byteOrder);
00049 static void putDouble(double doubleValue, unsigned char *buf, int byteOrder);
00050
00051 };
00052
00053 }
00054 }
00055
00056 #endif // #ifndef GEOS_IO_BYTEORDERVALUES_H
00057
00058
00059
00060
00061
00062
00063