Panda3D
dtool
src
prc
bigEndian.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file bigEndian.h
10
* @author drose
11
* @date 2000-08-23
12
*/
13
14
#ifndef BIGENDIAN_H
15
#define BIGENDIAN_H
16
17
#include "
dtoolbase.h
"
18
19
#include "
numeric_types.h
"
20
#include "
nativeNumericData.h
"
21
#include "
reversedNumericData.h
"
22
23
/**
24
* BigEndian is a special class that automatically reverses the byte-order of
25
* numeric values for little-endian machines, and passes them through
26
* unchanged for big-endian machines.
27
*/
28
29
#ifdef WORDS_BIGENDIAN
30
typedef
NativeNumericData
BigEndian
;
31
#else
32
typedef
ReversedNumericData
BigEndian
;
33
#endif
34
35
#endif
NativeNumericData
NativeNumericData and ReversedNumericData work together to provide a sneaky interface for automatical...
Definition:
nativeNumericData.h:39
numeric_types.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
nativeNumericData.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
reversedNumericData.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
ReversedNumericData
NativeNumericData and ReversedNumericData work together to provide a sneaky interface for automatical...
Definition:
reversedNumericData.h:42
dtoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BigEndian
ReversedNumericData BigEndian
BigEndian is a special class that automatically reverses the byte-order of numeric values for little-...
Definition:
bigEndian.h:32
Generated on Sun Dec 27 2020 13:22:46 for Panda3D by
1.8.20