Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cUnion32 Union Reference

#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
 

Detailed Description

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]

Member Function Documentation

◆ operator UINT32()

Gray::cUnion32::operator UINT32 ( ) const
inlinenoexcept

◆ operator=()

void Gray::cUnion32::operator= ( UINT32  dw)
inlinenoexcept

Member Data Documentation

◆ m_Hi

cUnion16 Gray::cUnion32::m_Hi

◆ m_Lo

cUnion16 Gray::cUnion32::m_Lo

◆ 

struct { ... } Gray::cUnion32::u2

◆ u_b

BYTE Gray::cUnion32::u_b[4]

◆ u_c

char Gray::cUnion32::u_c[4]

◆ u_dw

UINT32 Gray::cUnion32::u_dw

32 bit unsigned

◆ u_f

float Gray::cUnion32::u_f

32 bit float.

◆ u_s

short Gray::cUnion32::u_s[2]

16 bit signed words

◆ u_sc

signed char Gray::cUnion32::u_sc[4]

◆ u_w

WORD Gray::cUnion32::u_w[2]

16 bit unsigned words


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