![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cTypes.h>
Public Member Functions | |
operator UINT32 () const noexcept | |
void | operator= (UINT32 dw) noexcept |
Public Attributes | |
BYTE | u_b [4] |
char | u_c [4] |
signed char | u_sc [4] |
WORD | u_w [2] |
16 bit unsigned words More... | |
short | u_s [2] |
16 bit signed words More... | |
UINT32 | u_dw |
32 bit unsigned More... | |
float | u_f |
32 bit float. More... | |
struct { | |
cUnion16 m_Hi | |
cUnion16 m_Lo | |
} | u2 |
What types can fit inside 32 bits? MAKEDWORD(low, high) 32 bit union. size = 4 bytes This depends on USE_LITTLE_ENDIAN of course. Warning in GNUC reinterpret_ warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
|
inlinenoexcept |
|
inlinenoexcept |
cUnion16 Gray::cUnion32::m_Hi |
cUnion16 Gray::cUnion32::m_Lo |
struct { ... } Gray::cUnion32::u2 |
BYTE Gray::cUnion32::u_b[4] |
char Gray::cUnion32::u_c[4] |
UINT32 Gray::cUnion32::u_dw |
32 bit unsigned
float Gray::cUnion32::u_f |
32 bit float.
short Gray::cUnion32::u_s[2] |
16 bit signed words
signed char Gray::cUnion32::u_sc[4] |
WORD Gray::cUnion32::u_w[2] |
16 bit unsigned words