okteta
EndianIndependentBase< T, padCount > Struct Template Reference
#include <allprimitivetypes.h>
Inheritance diagram for EndianIndependentBase< T, padCount >:

Public Attributes | |
char | padding [padCount] |
T | value |
Detailed Description
template<typename T, int padCount>
struct EndianIndependentBase< T, padCount >
Ensures that when used in a union the uint8 value will be equal to the lowest bits of the uint32 value This means we need to add padding equal to 8-sizeof(T) before the value in the big endian case.
On little endian padding gets added at the end (not strictly necessary)
Definition at line 50 of file allprimitivetypes.h.
Member Data Documentation
template<typename T, int padCount>
char EndianIndependentBase< T, padCount >::padding |
Definition at line 52 of file allprimitivetypes.h.
template<typename T, int padCount>
T EndianIndependentBase< T, padCount >::value |
Definition at line 54 of file allprimitivetypes.h.
The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.