DUNE: Uniform Navigational Environment
2019.02.0
|
Static Public Member Functions | |
static uint16_t | toBE (uint16_t n) |
static int16_t | toBE (int16_t n) |
static uint32_t | toBE (uint32_t n) |
static int32_t | toBE (int32_t n) |
static uint32_t | fromBE (uint32_t n) |
static int32_t | fromBE (int32_t n) |
static uint16_t | fromBE (uint16_t n) |
static int16_t | fromBE (int16_t n) |
static uint16_t | fromBE (uint8_t *n) |
template<typename T > | |
static uint16_t | fromBE (T &var, const uint8_t *bfr) |
template<typename T > | |
static uint16_t | fromLE (T &var, const uint8_t *bfr) |
static uint16_t | copy1b (uint8_t *dest, const uint8_t *src) |
static uint16_t | copy2b (uint8_t *dest, const uint8_t *src) |
static uint16_t | copy4b (uint8_t *dest, const uint8_t *src) |
static uint16_t | copy8b (uint8_t *dest, const uint8_t *src) |
static uint16_t | rcopy1b (uint8_t *dest, const uint8_t *src) |
static uint16_t | rcopy2b (uint8_t *dest, const uint8_t *src) |
static uint16_t | rcopy4b (uint8_t *dest, const uint8_t *src) |
static uint16_t | rcopy8b (uint8_t *dest, const uint8_t *src) |
static uint16_t | copy (int8_t &dest, const uint8_t *src) |
static uint16_t | copy (uint8_t &dest, const uint8_t *src) |
static uint16_t | copy (int16_t &dest, const uint8_t *src) |
static uint16_t | copy (uint16_t &dest, const uint8_t *src) |
static uint16_t | copy (int32_t &dest, const uint8_t *src) |
static uint16_t | copy (uint32_t &dest, const uint8_t *src) |
static uint16_t | copy (int64_t &dest, const uint8_t *src) |
static uint16_t | copy (uint64_t &dest, const uint8_t *src) |
static uint16_t | copy (fp32_t &dest, const uint8_t *src) |
static uint16_t | copy (fp64_t &dest, const uint8_t *src) |
static uint16_t | rcopy (int8_t &dest, const uint8_t *src) |
static uint16_t | rcopy (uint8_t &dest, const uint8_t *src) |
static uint16_t | rcopy (int16_t &dest, const uint8_t *src) |
static uint16_t | rcopy (uint16_t &dest, const uint8_t *src) |
static uint16_t | rcopy (int32_t &dest, const uint8_t *src) |
static uint16_t | rcopy (uint32_t &dest, const uint8_t *src) |
static uint16_t | rcopy (int64_t &dest, const uint8_t *src) |
static uint16_t | rcopy (uint64_t &dest, const uint8_t *src) |
static uint16_t | rcopy (fp32_t &dest, const uint8_t *src) |
static uint16_t | rcopy (fp64_t &dest, const uint8_t *src) |
static unsigned | toLE (const uint8_t value, uint8_t *dst) |
static unsigned | toLE (const int8_t value, uint8_t *dst) |
static unsigned | toLE (const uint16_t value, uint8_t *dst) |
static unsigned | toLE (const int16_t value, uint8_t *dst) |
static unsigned | toLE (const uint32_t value, uint8_t *dst) |
static unsigned | toLE (const int32_t value, uint8_t *dst) |
static unsigned | toBE (const uint8_t value, uint8_t *dst) |
static unsigned | toBE (const int8_t value, uint8_t *dst) |
static unsigned | toBE (const uint16_t value, uint8_t *dst) |
static unsigned | toBE (const int16_t value, uint8_t *dst) |
static unsigned | toBE (const uint32_t value, uint8_t *dst) |
static unsigned | toBE (const int32_t value, uint8_t *dst) |
static unsigned | toBE (const float value, uint8_t *dst) |
|
inlinestatic |
References copy1b().
Referenced by DUNE::IMC::Packet::deserializeHeader(), DUNE::IMC::Packet::deserializePayload(), fromBE(), and fromLE().
|
inlinestatic |
References copy1b().
|
inlinestatic |
References copy2b().
|
inlinestatic |
References copy2b().
|
inlinestatic |
References copy4b().
|
inlinestatic |
References copy4b().
|
inlinestatic |
References copy8b().
|
inlinestatic |
References copy8b().
|
inlinestatic |
References copy4b().
|
inlinestatic |
References copy8b().
|
inlinestatic |
Copy one byte of a memory area.
dest | destination memory area. |
src | source memory area. |
Referenced by copy().
|
inlinestatic |
Copy two bytes of a memory area.
dest | destination memory area. |
src | source memory area. |
Referenced by copy().
|
inlinestatic |
|
inlinestatic |
Copy eight bytes of a memory area.
dest | destination memory area. |
src | source memory area. |
Referenced by copy().
|
inlinestatic |
Convert the 32-bit unsigned integer from big endian byte order to host byte order.
If the host is big endian no conversion is performed.
n | integer to convert. |
Referenced by DUNE::Network::TCPSocket::accept(), fromBE(), DUNE::Network::TCPSocket::getBoundAddress(), DUNE::Network::TCPSocket::getBoundPort(), DUNE::Network::UDPSocket::read(), and DUNE::Network::Address::toIntegerNative().
|
inlinestatic |
Convert the 32-bit signed integer from big endian byte order to host byte order.
If the host is big endian no conversion is performed.
n | integer to convert. |
References fromBE().
|
inlinestatic |
Convert the 16-bit unsigned integer from big endian byte order to host byte order.
If the host is big endian no conversion is performed.
n | integer to convert. |
|
inlinestatic |
Convert the 16-bit signed integer from big endian byte order to host byte order.
If the host is big endian no conversion is performed.
n | integer to convert. |
References fromBE().
|
inlinestatic |
Converts the first 2 bytes of an array from big endian byte order to host byte order.
n | array to convert. |
|
inlinestatic |
|
inlinestatic |
References copy(), and rcopy().
Referenced by DUNE::Hardware::UCTK::Frame::get().
|
inlinestatic |
References rcopy1b().
Referenced by DUNE::IMC::Packet::deserializeHeader(), DUNE::IMC::Packet::deserializePayload(), fromBE(), and fromLE().
|
inlinestatic |
References rcopy1b().
|
inlinestatic |
References rcopy2b().
|
inlinestatic |
References rcopy2b().
|
inlinestatic |
References rcopy4b().
|
inlinestatic |
References rcopy4b().
|
inlinestatic |
References rcopy8b().
|
inlinestatic |
References rcopy8b().
|
inlinestatic |
References rcopy4b().
|
inlinestatic |
References rcopy8b().
|
inlinestatic |
Copy one byte of a memory area.
dest | destination memory area. |
src | source memory area. |
Referenced by rcopy().
|
inlinestatic |
Copy two bytes of a memory area while reversing the order of the bytes.
dest | destination memory area. |
src | source memory area. |
Referenced by rcopy().
|
inlinestatic |
|
inlinestatic |
Copy eight bytes of a memory area while reversing the order of the bytes.
dest | destination memory area. |
src | source memory area. |
Referenced by rcopy().
|
inlinestatic |
Convert the 16-bit unsigned integer to big endian byte order.
If the host is big endian no conversion is performed.
n | integer to convert. |
Referenced by DUNE::Network::TCPSocket::bind(), DUNE::Network::UDPSocket::bind(), DUNE::Network::TCPSocket::connect(), DUNE::Network::Address::operator=(), toBE(), and DUNE::Network::UDPSocket::write().
|
inlinestatic |
Convert the 16-bit signed integer to big endian byte order.
If the host is big endian no conversion is performed.
n | integer to convert. |
References toBE().
|
inlinestatic |
Convert the 32-bit unsigned integer to big endian byte order.
If the host is big endian no conversion is performed.
n | integer to convert. |
|
inlinestatic |
Convert the 32-bit signed integer to big endian byte order.
If the host is big endian no conversion is performed.
n | integer to convert. |
References toBE().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References toBE().
|
inlinestatic |
|
inlinestatic |
References toBE().
|
inlinestatic |
|
inlinestatic |
Referenced by DUNE::Hardware::UCTK::Frame::set(), and toLE().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References toLE().
|
inlinestatic |
|
inlinestatic |
References toLE().