#include "LDK/Types.h"
Include dependency graph for ByteOrder.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | LDK |
Defines | |
#define | LDK_LIL_ENDIAN 1234 |
#define | LDK_BIG_ENDIAN 4321 |
#define | LDK_BYTEORDER LDK_BIG_ENDIAN |
Functions | |
uint16 | LDK::swap16 (uint16 dat) |
Reverses the order of the bytes in a 16-bit integer. | |
uint32 | LDK::swap32 (uint32 dat) |
Reverses the order of the bytes in a 32-bit integer. | |
uint64 | LDK::swap64 (uint64 dat) |
Reverses the order of the bytes in a 64-bit integer. | |
uint16 | LDK::swapULE16 (uint16 x) |
Converts an unsigned 16-bit integer to little endian format if not already in LE format, otherwise does nothing. | |
int16 | LDK::swapSLE16 (int16 x) |
Converts a signed 16-bit integer to little endian format if not already in LE format, otherwise does nothing. | |
uint32 | LDK::swapULE32 (uint32 x) |
Converts an unsigned 32-bit integer to big endian format if not already in BE format, otherwise does nothing. | |
int32 | LDK::swapSLE32 (int32 x) |
Converts a signed 32-bit integer to little endian format if not already in LE format, otherwise does nothing. | |
uint64 | LDK::swapULE64 (uint64 x) |
Converts an unsigned 64-bit integer to little endian format if not already in LE format, otherwise does nothing. | |
int64 | LDK::swapSLE64 (int64 x) |
Converts a signed 64-bit integer to little endian format if not already in LE format, otherwise does nothing. | |
uint16 | LDK::swapUBE16 (uint16 x) |
Converts an unsigned 16-bit integer to big endian format if not already in BE format, otherwise does nothing. | |
int16 | LDK::swapSBE16 (int16 x) |
Converts a signed 16-bit integer to big endian format if not already in BE format, otherwise does nothing. | |
uint32 | LDK::swapUBE32 (uint32 x) |
int32 | LDK::swapSBE32 (int32 x) |
Converts a signed 32-bit integer to big endian format if not already in BE format, otherwise does nothing. | |
uint64 | LDK::swapUBE64 (uint64 x) |
Converts an unsigned 64-bit integer to big endian format if not already in BE format, otherwise does nothing. | |
int64 | LDK::swapSBE64 (int64 x) |
Converts a signed 64-bit integer to big endian format if not already in BE format, otherwise does nothing. |
Definition in file ByteOrder.h.