Panda3D
 All Classes Functions Variables Enumerations
bigEndian.h
1 // Filename: bigEndian.h
2 // Created by: drose (23Aug00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef BIGENDIAN_H
16 #define BIGENDIAN_H
17 
18 #include "dtoolbase.h"
19 
20 #include "numeric_types.h"
21 #include "nativeNumericData.h"
22 #include "reversedNumericData.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : BigEndian
26 // Description : BigEndian is a special class that automatically
27 // reverses the byte-order of numeric values for
28 // little-endian machines, and passes them through
29 // unchanged for big-endian machines.
30 ////////////////////////////////////////////////////////////////////
31 
32 #ifdef WORDS_BIGENDIAN
34 #else
36 #endif
37 
38 #endif
NativeNumericData and ReversedNumericData work together to provide a sneaky interface for automatical...
NativeNumericData and ReversedNumericData work together to provide a sneaky interface for automatical...