CrystalSpace

Public API Reference

csutil/csendian.h File Reference

Helpers for dealing with endian conversions. More...

#include <math.h>
#include "cstypes.h"
#include "csutil/bitops.h"
#include <byteswap.h>

Go to the source code of this file.

Classes

struct  csBigEndian
 Big endian to native conversion routines. More...
struct  csGetFromAddress
 Sized data type access helpers. More...
struct  csIEEEfloat
 Convert IEEE 32-bit floats from or to native machine floats. More...
struct  csLittleEndian
 Little endian to native conversion routines. More...
struct  csSetToAddress
 Sized data type access helpers. More...
struct  csSwapBytes
 Methods to unconditionally swap the byte order of specifically sized types. More...

Functions

static int64 csDoubleToLongLong (double d)
 Convert a double to a cross-platform 64-bit format (no endianess adjustments!).
static int32 csFloatToLong (float f)
 Convert a float to a cross-platform 32-bit format (no endianess adjustments!).
static short csFloatToShort (float f)
 Convert a float to a cross-platform 16-bit format (no endianess adjustments!).
static double csLongLongToDouble (int64 i)
 Convert a 64-bit cross-platform double to native format (no endianess adjustments!).
static float csLongToFloat (int32 l)
 Convert a 32-bit cross-platform float to native format (no endianess adjustments!).
static float csShortToFloat (short s)
 Convert a 16-bit cross-platform float to native format (no endianess adjustments!).

Detailed Description

Helpers for dealing with endian conversions.

Definition in file csendian.h.


Generated for Crystal Space 2.0 by doxygen 1.6.1