OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
src
base
ossimEndian.cpp
Go to the documentation of this file.
1
//******************************************************************
2
//
3
// License: See top level LICENSE.txt file.
4
//
5
// Author: Garrett Potts
6
//
7
// Description: This file contains the implementation of the
8
// endian byte swap routines.
9
//
10
//***********************************
11
// $Id: ossimEndian.cpp 22197 2013-03-12 02:00:55Z dburken $
12
13
#include <
ossim/base/ossimEndian.h
>
14
15
ossimEndian::ossimEndian
()
16
{
17
ossim_uint16
test;
18
ossim_uint8
*testPtr=0;
19
test = 0x0001;
20
21
testPtr =
reinterpret_cast<
unsigned
char
*
>
(&test);
22
theSystemEndianType
= testPtr[0] ?
OSSIM_LITTLE_ENDIAN
:
OSSIM_BIG_ENDIAN
;
23
}
ossimEndian::ossimEndian
ossimEndian()
Definition:
ossimEndian.cpp:15
OSSIM_BIG_ENDIAN
Definition:
ossimConstants.h:428
ossim_uint16
unsigned short ossim_uint16
Definition:
ossimConstants.h:231
ossimEndian::theSystemEndianType
ossimByteOrder theSystemEndianType
Definition:
ossimEndian.h:68
ossimEndian.h
OSSIM_LITTLE_ENDIAN
Definition:
ossimConstants.h:427
ossim_uint8
unsigned char ossim_uint8
Definition:
ossimConstants.h:227
Generated on Fri Aug 3 2018 08:46:46 for OSSIM - Open Source Software Image Map by
1.8.14