VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables

Go to the source code of this file.

Macros

#define is_bigendian()   ( (*(char*)&endianChecker) == 0 )

Functions

static void swapByteArray (char *byteArray, int theSize)
 Swap the byte array in memory.
static DtU16 endianSwap16Bit (DtU16 rhs)
 swap 16 bits
static DtU32 endianSwap32Bit (DtU32 rhs)
 swap 32 bits
static DtU64 endianSwap64Bit (DtU64 rhs)
 swap 64 bits

Variables

const int endianChecker = 1
 This checks whether the machine is Big Endian or Little Endian.

Detailed Description

Macro Definition Documentation

#define is_bigendian ( )    ( (*(char*)&endianChecker) == 0 )

Function Documentation

static DtU16 endianSwap16Bit ( DtU16  rhs)
static

swap 16 bits

Referenced by endianSwap32Bit().

static DtU32 endianSwap32Bit ( DtU32  rhs)
static

swap 32 bits

References endianSwap16Bit().

Referenced by endianSwap64Bit().

static DtU64 endianSwap64Bit ( DtU64  rhs)
static

swap 64 bits

References endianSwap32Bit().

static void swapByteArray ( char *  byteArray,
int  theSize 
)
static

Swap the byte array in memory.

Variable Documentation

const int endianChecker = 1

This checks whether the machine is Big Endian or Little Endian.


Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)