#include <system.hh>
Inheritance diagram for mpcl::system::ISystem::TMachineDependent:
Public Methods | |
TMachineDependent (void) | |
Builds a new instance. | |
virtual | ~TMachineDependent (void) |
Destroys the instance. | |
bool | isBigEndian (void) const |
bool | isLittleEndian (void) const |
long int | getEndianIndependentLongInt (EEndianness eENDIAN_TYPE, const unsigned char *pkucSOURCE_BUFFER, std::size_t zLENGTH) const |
Protected Types | |
enum | EEndianness { eLittleEndian, eBigEndian } |
Different types of endianness. More... | |
Protected Attributes | |
EEndianness | eEndianType |
Machine Endianness. |
Definition at line 98 of file system.hh.
|
Different types of endianness.
|
|
Returns a long integer from binary buffer, no matter what type of endian use this machine.
Definition at line 71 of file system.cc. References eLittleEndian. Referenced by mpcl::system::ISystem::TBigEndianBuffer::operator long int(), and mpcl::system::ISystem::TLittleEndianBuffer::operator long int(). |
|
Returns true if buffer is big-endian.
Definition at line 137 of file system.hh. References eBigEndian, and eEndianType. |
|
Returns true if buffer is little-endian.
Definition at line 146 of file system.hh. References eEndianType, and eLittleEndian. |