MADARA  3.1.8
EndiannessChecker Class Reference

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...
 

Detailed Description

INTERNAL USE: Checks for and converting to network long (htonl)

Definition at line 586 of file Utility.cpp.

Constructor & Destructor Documentation

EndiannessChecker::EndiannessChecker ( )
inline

Constructor.

Definition at line 592 of file Utility.cpp.

Member Data Documentation

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


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