oilHardwareManager Namespace Reference

Provide the kernel with an invariant API to handle differences in hardware (primarilly Byte ordering) Notes: LE means "Little-Endian" (e.g. Intel) BE means "Big-Endian" (e.g. PowerPC) Native means whichever is the native byte ordering on the current platform. More...


Classes

union  DoubleUnion
union  FloatUnion

Functions

static INT16 BEtoNative (INT16 n)
static INT32 BEtoNative (INT32 n)
static INT64 BEtoNative (INT64 n)
static INT16 LEtoNative (INT16 n)
static INT32 LEtoNative (INT32 n)
static INT64 LEtoNative (INT64 n)
static INT16 NativetoBE (INT16 n)
static INT32 NativetoBE (INT32 n)
static INT64 NativetoBE (INT64 n)
static INT16 NativetoLE (INT16 n)
static INT32 NativetoLE (INT32 n)
static INT64 NativetoLE (INT64 n)
static UINT16 BEtoNative (UINT16 n)
static UINT32 BEtoNative (UINT32 n)
static UINT64 BEtoNative (UINT64 n)
static UINT16 LEtoNative (UINT16 n)
static UINT32 LEtoNative (UINT32 n)
static UINT64 LEtoNative (UINT64 n)
static UINT16 NativetoBE (UINT16 n)
static UINT32 NativetoBE (UINT32 n)
static UINT64 NativetoBE (UINT64 n)
static UINT16 NativetoLE (UINT16 n)
static UINT32 NativetoLE (UINT32 n)
static UINT64 NativetoLE (UINT64 n)
static FIXED16 BEtoNative (FIXED16 n)
static FIXED16 LEtoNative (FIXED16 n)
static FIXED16 NativetoBE (FIXED16 n)
static FIXED16 NativetoLE (FIXED16 n)
static float BEtoNative (FloatUnion n)
static float LEtoNative (FloatUnion n)
static FloatUnion NativetoBEU (float n)
static FloatUnion NativetoLEU (float n)
static double BEtoNative (DoubleUnion n)
static double LEtoNative (DoubleUnion n)
static DoubleUnion NativetoBEU (double n)
static DoubleUnion NativetoLEU (double n)
 PORTNOTE ("WCHARSize","Check conversion from UTF32 to UTF16 and vice-versa")
static WCHAR NativeToUTF16 (WCHAR n)
static WCHAR UTF16ToNative (WCHAR n)


Detailed Description

Provide the kernel with an invariant API to handle differences in hardware (primarilly Byte ordering) Notes: LE means "Little-Endian" (e.g. Intel) BE means "Big-Endian" (e.g. PowerPC) Native means whichever is the native byte ordering on the current platform.

Author:
Phil Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/12/2005


Function Documentation

static double oilHardwareManager::BEtoNative DoubleUnion  n  )  [inline, static]
 

Definition at line 231 of file hardwaremanager.h.

00231 {n.u_INT64 = wxINT64_SWAP_ALWAYS(n.u_INT64); return n.u_double;}

static float oilHardwareManager::BEtoNative FloatUnion  n  )  [inline, static]
 

Definition at line 226 of file hardwaremanager.h.

00226 {n.u_INT32 = wxINT32_SWAP_ALWAYS(n.u_INT32); return n.u_float;}

static FIXED16 oilHardwareManager::BEtoNative FIXED16  n  )  [inline, static]
 

Definition at line 221 of file hardwaremanager.h.

00221 {return FIXED16::FromRawLong(wxINT32_SWAP_ALWAYS(n.GetRawLong()));}

static UINT64 oilHardwareManager::BEtoNative UINT64  n  )  [inline, static]
 

Definition at line 206 of file hardwaremanager.h.

00206 {return wxUINT64_SWAP_ALWAYS(n);}

static UINT32 oilHardwareManager::BEtoNative UINT32  n  )  [inline, static]
 

Definition at line 205 of file hardwaremanager.h.

00205 {return wxUINT32_SWAP_ALWAYS(n);}

static UINT16 oilHardwareManager::BEtoNative UINT16  n  )  [inline, static]
 

Definition at line 204 of file hardwaremanager.h.

00204 {return wxUINT16_SWAP_ALWAYS(n);}

static INT64 oilHardwareManager::BEtoNative INT64  n  )  [inline, static]
 

Definition at line 189 of file hardwaremanager.h.

00189 {return wxINT64_SWAP_ALWAYS(n);}

static INT32 oilHardwareManager::BEtoNative INT32  n  )  [inline, static]
 

Definition at line 188 of file hardwaremanager.h.

00188 {return wxINT32_SWAP_ALWAYS(n);}

static INT16 oilHardwareManager::BEtoNative INT16  n  )  [inline, static]
 

Definition at line 187 of file hardwaremanager.h.

00187 {return wxINT16_SWAP_ALWAYS(n);}

static double oilHardwareManager::LEtoNative DoubleUnion  n  )  [inline, static]
 

Definition at line 232 of file hardwaremanager.h.

00232 {return n.u_double;}

static float oilHardwareManager::LEtoNative FloatUnion  n  )  [inline, static]
 

Definition at line 227 of file hardwaremanager.h.

00227 {return n.u_float;}

static FIXED16 oilHardwareManager::LEtoNative FIXED16  n  )  [inline, static]
 

Definition at line 222 of file hardwaremanager.h.

00222 {return n;}

static UINT64 oilHardwareManager::LEtoNative UINT64  n  )  [inline, static]
 

Definition at line 210 of file hardwaremanager.h.

00210 {return n;}

static UINT32 oilHardwareManager::LEtoNative UINT32  n  )  [inline, static]
 

Definition at line 209 of file hardwaremanager.h.

00209 {return n;}

static UINT16 oilHardwareManager::LEtoNative UINT16  n  )  [inline, static]
 

Definition at line 208 of file hardwaremanager.h.

00208 {return n;}

static INT64 oilHardwareManager::LEtoNative INT64  n  )  [inline, static]
 

Definition at line 193 of file hardwaremanager.h.

00193 {return n;}

static INT32 oilHardwareManager::LEtoNative INT32  n  )  [inline, static]
 

Definition at line 192 of file hardwaremanager.h.

00192 {return n;}

static INT16 oilHardwareManager::LEtoNative INT16  n  )  [inline, static]
 

Definition at line 191 of file hardwaremanager.h.

00191 {return n;}

static FIXED16 oilHardwareManager::NativetoBE FIXED16  n  )  [inline, static]
 

Definition at line 223 of file hardwaremanager.h.

00223 {return FIXED16::FromRawLong(wxINT32_SWAP_ALWAYS(n.GetRawLong()));}

static UINT64 oilHardwareManager::NativetoBE UINT64  n  )  [inline, static]
 

Definition at line 214 of file hardwaremanager.h.

00214 {return wxUINT64_SWAP_ALWAYS(n);}

static UINT32 oilHardwareManager::NativetoBE UINT32  n  )  [inline, static]
 

Definition at line 213 of file hardwaremanager.h.

00213 {return wxUINT32_SWAP_ALWAYS(n);}

static UINT16 oilHardwareManager::NativetoBE UINT16  n  )  [inline, static]
 

Definition at line 212 of file hardwaremanager.h.

00212 {return wxUINT16_SWAP_ALWAYS(n);}

static INT64 oilHardwareManager::NativetoBE INT64  n  )  [inline, static]
 

Definition at line 197 of file hardwaremanager.h.

00197 {return wxINT64_SWAP_ALWAYS(n);}

static INT32 oilHardwareManager::NativetoBE INT32  n  )  [inline, static]
 

Definition at line 196 of file hardwaremanager.h.

00196 {return wxINT32_SWAP_ALWAYS(n);}

static INT16 oilHardwareManager::NativetoBE INT16  n  )  [inline, static]
 

Definition at line 195 of file hardwaremanager.h.

00195 {return wxINT16_SWAP_ALWAYS(n);}

static DoubleUnion oilHardwareManager::NativetoBEU double  n  )  [inline, static]
 

Definition at line 233 of file hardwaremanager.h.

00233 {DoubleUnion f; f.u_double=n; f.u_INT64 = wxINT64_SWAP_ALWAYS(f.u_INT64); return f;}

static FloatUnion oilHardwareManager::NativetoBEU float  n  )  [inline, static]
 

Definition at line 228 of file hardwaremanager.h.

00228 {FloatUnion f; f.u_float=n; f.u_INT32 = wxINT32_SWAP_ALWAYS(f.u_INT32); return f;}

static FIXED16 oilHardwareManager::NativetoLE FIXED16  n  )  [inline, static]
 

Definition at line 224 of file hardwaremanager.h.

00224 {return n;}

static UINT64 oilHardwareManager::NativetoLE UINT64  n  )  [inline, static]
 

Definition at line 218 of file hardwaremanager.h.

00218 {return n;}

static UINT32 oilHardwareManager::NativetoLE UINT32  n  )  [inline, static]
 

Definition at line 217 of file hardwaremanager.h.

00217 {return n;}

static UINT16 oilHardwareManager::NativetoLE UINT16  n  )  [inline, static]
 

Definition at line 216 of file hardwaremanager.h.

00216 {return n;}

static INT64 oilHardwareManager::NativetoLE INT64  n  )  [inline, static]
 

Definition at line 201 of file hardwaremanager.h.

00201 {return n;}

static INT32 oilHardwareManager::NativetoLE INT32  n  )  [inline, static]
 

Definition at line 200 of file hardwaremanager.h.

00200 {return n;}

static INT16 oilHardwareManager::NativetoLE INT16  n  )  [inline, static]
 

Definition at line 199 of file hardwaremanager.h.

00199 {return n;}

static DoubleUnion oilHardwareManager::NativetoLEU double  n  )  [inline, static]
 

Definition at line 234 of file hardwaremanager.h.

00234 {DoubleUnion f; f.u_double=n; return f;}

static FloatUnion oilHardwareManager::NativetoLEU float  n  )  [inline, static]
 

Definition at line 229 of file hardwaremanager.h.

00229 {FloatUnion f; f.u_float=n; return f;}

static WCHAR oilHardwareManager::NativeToUTF16 WCHAR  n  )  [inline, static]
 

Definition at line 242 of file hardwaremanager.h.

00242 {return n;}     // Just truncate at the moment

oilHardwareManager::PORTNOTE "WCHARSize"  ,
"Check conversion from UTF32 to UTF16 and vice-versa" 
 

static WCHAR oilHardwareManager::UTF16ToNative WCHAR  n  )  [inline, static]
 

Definition at line 243 of file hardwaremanager.h.

00243 {return n;}     // Just truncate at the moment


Generated on Sat Nov 10 04:03:31 2007 for Camelot by  doxygen 1.4.4