|
MADARA
3.1.8
|
INTERNAL USE: Checks for and converting to network long (htonl) More...
Public Member Functions | |
| EndiannessChecker () | |
| Constructor. More... | |
Public Attributes | |
| bool | is_little |
| indicates whether this is little endian (modified by constructor) More... | |
| unsigned char | c [sizeof(unsigned short)] |
| unsigned char array value More... | |
| unsigned short | us |
| unsigned short value More... | |
Private Attributes | |
| union { | |
| unsigned char c [sizeof(unsigned short)] | |
| unsigned char array value More... | |
| unsigned short us | |
| unsigned short value More... | |
| } | x |
| by using a union, we can reference the bytes of the short More... | |
INTERNAL USE: Checks for and converting to network long (htonl)
Definition at line 586 of file Utility.cpp.
|
inline |
Constructor.
Definition at line 592 of file Utility.cpp.
| unsigned char EndiannessChecker::c[sizeof(unsigned short)] |
unsigned char array value
Definition at line 614 of file Utility.cpp.
| bool EndiannessChecker::is_little |
indicates whether this is little endian (modified by constructor)
Definition at line 605 of file Utility.cpp.
| unsigned short EndiannessChecker::us |
unsigned short value
Definition at line 611 of file Utility.cpp.
| union { ... } EndiannessChecker::x |
by using a union, we can reference the bytes of the short