Panda3D
dtool
src
prc
littleEndian.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 littleEndian.h
10
* @author drose
11
* @date 2000-02-09
12
*/
13
14
#ifndef LITTLEENDIAN_H
15
#define LITTLEENDIAN_H
16
17
#include "
dtoolbase.h
"
18
19
#include "
numeric_types.h
"
20
#include "
nativeNumericData.h
"
21
#include "
reversedNumericData.h
"
22
23
/**
24
* LittleEndian is a special class that automatically reverses the byte-order
25
* of numeric values for big-endian machines, and passes them through
26
* unchanged for little-endian machines.
27
*/
28
29
#ifdef WORDS_BIGENDIAN
30
typedef
ReversedNumericData
LittleEndian
;
31
#else
32
typedef
NativeNumericData
LittleEndian
;
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.
LittleEndian
NativeNumericData LittleEndian
LittleEndian is a special class that automatically reverses the byte-order of numeric values for big-...
Definition:
littleEndian.h:32
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.
Generated on Mon Sep 14 2020 15:06:43 for Panda3D by
1.8.20