|
| Address4 ()=default |
| Creates a new address object with zero as default value. More...
|
|
| Address4 (const uint32_t address) |
| Creates a new address object. More...
|
|
| Address4 (const uint32_t address, const OrderType orderType) |
| Creates a new address object by a given address number in big-endian, little-endian order or local platform. More...
|
|
| Address4 (const uint8_t sub0, const uint8_t sub1, const uint8_t sub2, const uint8_t sub3) |
| Creates a new address object. More...
|
|
uint32_t | littleEndian () const |
| Returns the address number in little-endian order. More...
|
|
std::string | readable () const |
| Returns the address number as a readable string. More...
|
|
bool | isValid () const |
| Returns whether this address hold a valid address. More...
|
|
bool | isNull () const |
| Returns whether this address hold an invalid address (a zero address). More...
|
|
bool | operator== (const Address4 &address) const |
| Returns whether two address objects are identical. More...
|
|
bool | operator!= (const Address4 &address) const |
| Returns whether two address objects are not identical. More...
|
|
| operator uint32_t () const |
| Casts the wrapped address number. More...
|
|
size_t | operator() (const Address4 &address) const |
| Hash function. More...
|
|
|
static Address4 | localHost () |
| Returns the local host address. More...
|
|
static int | toBigEndian (const int32_t value) |
| Returns a value in big-endian order given in local system bit order. More...
|
|
static uint32_t | toBigEndian (const uint32_t value) |
| Returns a value in big-endian order given in local system bit order. More...
|
|
static int16_t | toBigEndian (const int16_t value) |
| Returns a value in big-endian order given in local system bit order. More...
|
|
static uint16_t | toBigEndian (const uint16_t value) |
| Returns a value in big-endian order given in local system bit order. More...
|
|
static int32_t | fromBigEndian (const int32_t value) |
| Returns a value in local system bit order given as big-endian bit order. More...
|
|
static uint32_t | fromBigEndian (const uint32_t value) |
| Returns a value in local system bit order given as big-endian bit order. More...
|
|
static int16_t | fromBigEndian (const int16_t value) |
| Returns a value in local system bit order given as big-endian bit order. More...
|
|
static uint16_t | fromBigEndian (const uint16_t value) |
| Returns a value in local system bit order given as big-endian bit order. More...
|
|
This class wraps an address number with 32 bits.
Internally, the address number is stored in big-endian order.