My Project
Classes | Static Public Member Functions | List of all members
ParaEngine::ByteSwap Class Reference

Defines some useful byte order swap routines. More...

#include <ByteSwap.h>

Classes

struct  _swapper< T, 2 >
 
struct  _swapper< T, 4 >
 
struct  _swapper< T, 8 >
 

Static Public Member Functions

static void Swap2 (void *_szOut)
 Swap two bytes of data. More...
 
static void Swap4 (void *_szOut)
 Swap four bytes of data. More...
 
static void Swap8 (void *_szOut)
 Swap eight bytes of data. More...
 
static void Swap (float *fOut)
 ByteSwap a float. More...
 
static void Swap (double *fOut)
 ByteSwap a double. More...
 
static void Swap (int16_t *fOut)
 ByteSwap an int16t. More...
 
static void Swap (uint16_t *fOut)
 
static void Swap (int32_t *fOut)
 ByteSwap an int32t. More...
 
static void Swap (uint32_t *fOut)
 
static void Swap (int64_t *fOut)
 ByteSwap an int64t. More...
 
static void Swap (uint64_t *fOut)
 
template<typename Type >
static Type Swapped (Type tOut)
 Templatized ByteSwap. More...
 

Detailed Description

Defines some useful byte order swap routines.

This is required to read big-endian model formats on little-endian machines, and vice versa. Direct use of this class is DEPRECATED. Use #StreamReader instead.

Member Function Documentation

§ Swap() [1/5]

static void ParaEngine::ByteSwap::Swap ( float *  fOut)
inlinestatic

ByteSwap a float.

Not a joke.

Parameters
[in,out]fOutehm. ..

§ Swap() [2/5]

static void ParaEngine::ByteSwap::Swap ( double *  fOut)
inlinestatic

ByteSwap a double.

Not a joke.

Parameters
[in,out]fOutehm. ..

§ Swap() [3/5]

static void ParaEngine::ByteSwap::Swap ( int16_t *  fOut)
inlinestatic

ByteSwap an int16t.

Not a joke.

Parameters
[in,out]fOutehm. ..

§ Swap() [4/5]

static void ParaEngine::ByteSwap::Swap ( int32_t *  fOut)
inlinestatic

ByteSwap an int32t.

Not a joke.

Parameters
[in,out]fOutehm. ..

§ Swap() [5/5]

static void ParaEngine::ByteSwap::Swap ( int64_t *  fOut)
inlinestatic

ByteSwap an int64t.

Not a joke.

Parameters
[in,out]fOutehm. ..

§ Swap2()

static void ParaEngine::ByteSwap::Swap2 ( void *  _szOut)
inlinestatic

Swap two bytes of data.

Parameters
[in,out]_szOutA void* to save the reintcasts for the caller.

§ Swap4()

static void ParaEngine::ByteSwap::Swap4 ( void *  _szOut)
inlinestatic

Swap four bytes of data.

Parameters
[in,out]_szOutA void* to save the reintcasts for the caller.

§ Swap8()

static void ParaEngine::ByteSwap::Swap8 ( void *  _szOut)
inlinestatic

Swap eight bytes of data.

Parameters
[in,out]_szOutA void* to save the reintcasts for the caller.

§ Swapped()

template<typename Type >
static Type ParaEngine::ByteSwap::Swapped ( Type  tOut)
inlinestatic

Templatized ByteSwap.

Returns
param tOut as swapped

The documentation for this class was generated from the following file: