Panda3D
littleEndian.h
1 // Filename: littleEndian.h
2 // Created by: drose (09Feb00)
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 LITTLEENDIAN_H
16 #define LITTLEENDIAN_H
17 
18 #include "dtoolbase.h"
19 
20 #include "numeric_types.h"
21 #include "nativeNumericData.h"
22 #include "reversedNumericData.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : LittleEndian
26 // Description : LittleEndian is a special class that automatically
27 // reverses the byte-order of numeric values for
28 // big-endian machines, and passes them through
29 // unchanged for little-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...