#include <StArchInfo.h>
Public Member Functions | |
| StArchInfo () | |
| Constructor, initialize variables. | |
| ~StArchInfo () | |
| Destructore - NOOP. | |
| Bool_t | isBigEndian () |
| Returns true/false if endianess is/ins't Big. | |
| Bool_t | isLittleEndian () |
| Returns true/false if endianess is/ins't Little. | |
| Int_t | Endian () |
Static Public Member Functions | |
| template<typename T > | |
| static long | align (const T &) |
| Returns the number of bytes the type T has to be align to. | |
| template<typename T > | |
| static int | align () |
| This is an overloaded member function, provided for convenience. | |
| template<typename C , typename T > | |
| static int | padding (const T &offset) |
| Returns the number of bytes to be added to the offset of the T type to get the C type proper aligned. | |
| template<typename T , typename C > | |
| static int | padding (const T &offset, const C &) |
| This is an overloaded member function, provided for convenience. | |
Definition at line 29 of file StArchInfo.h.
| static int StArchInfo::align | ( | ) | [inline, static] |
This is an overloaded member function, provided for convenience.
Returns the number of bytes the type T has to be align to
Definition at line 51 of file StArchInfo.h.
| static int StArchInfo::padding | ( | const T & | offset, | |
| const C & | ||||
| ) | [inline, static] |
This is an overloaded member function, provided for convenience.
Returns the number of bytes to be added to the offset of the T type to get the C type proper aligned
Definition at line 80 of file StArchInfo.h.
| static int StArchInfo::padding | ( | const T & | offset | ) | [inline, static] |
Returns the number of bytes to be added to the offset of the T type to get the C type proper aligned.
http://en.wikipedia.org/wiki/Data_structure_alignment#Computing_padding
Definition at line 67 of file StArchInfo.h.
1.5.9