6 #ifndef __ENDIANCONVERTER_H__ 7 #define __ENDIANCONVERTER_H__ 26 char ch = (*(
char *)&x);
41 Value = (((Value << 8) & 0xFF00) | ((Value >> 8) & 0x00FF));
58 Value = (((Value << 8) & 0xFF00) | ((Value >> 8) & 0x00FF));
76 High = (Value & 0xFFFF0000) >> 16;
77 Low = Value & 0x0000FFFF;
96 High = (Value & 0xFFFF0000) >> 16;
97 Low = Value & 0x0000FFFF;
110 static float Convert(
float Value,
bool bForce =
false)
121 Conv.u =
Convert(Conv.u, bForce);
135 #endif //#ifndef __ENDIANCONVERTER_H__ static s32 Convert(s32 Value, bool bForce=false)
符号付き32ビット変換
Definition: EndianConverter.h:71
static bool IsLittleEndian()
リトルエンディアン?
Definition: EndianConverter.h:23
int s32
Definition: TypeDefs.h:9
static u32 Convert(u32 Value, bool bForce=false)
符号なし32ビット変換
Definition: EndianConverter.h:91
unsigned int u32
Definition: TypeDefs.h:10
static u16 Convert(u16 Value, bool bForce=false)
符号なし16ビット変換
Definition: EndianConverter.h:54
unsigned short u16
Definition: TypeDefs.h:8
static s16 Convert(s16 Value, bool bForce=false)
符号付き16ビット変換
Definition: EndianConverter.h:37
エンディアン変換
Definition: EndianConverter.h:13
static float Convert(float Value, bool bForce=false)
float変換
Definition: EndianConverter.h:110
short s16
Definition: TypeDefs.h:7