MPD 0.20.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

Macros | Functions
ByteOrder.hxx File Reference
`#include "Compiler.h"`
`#include <stdint.h>`
`#include <endian.h>`
Include dependency graph for ByteOrder.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros
#define | IS_LITTLE_ENDIAN true
#define | IS_BIG_ENDIAN false

## Functions
static constexpr bool | IsLittleEndian ()
static constexpr bool | IsBigEndian ()
static constexpr uint16_t | GenericByteSwap16 (uint16_t value)
static constexpr uint32_t | GenericByteSwap32 (uint32_t value)
static constexpr uint64_t | GenericByteSwap64 (uint64_t value)
static constexpr uint16_t | ByteSwap16 (uint16_t value)
static constexpr uint32_t | ByteSwap32 (uint32_t value)
static constexpr uint64_t | ByteSwap64 (uint64_t value)
static constexpr uint16_t | FromBE16 (uint16_t value)
| Converts a 16bit value from big endian to the system's byte order. More...
static constexpr uint32_t | FromBE32 (uint32_t value)
| Converts a 32bit value from big endian to the system's byte order. More...
static constexpr uint64_t | FromBE64 (uint64_t value)
| Converts a 64bit value from big endian to the system's byte order. More...
static constexpr uint16_t | FromLE16 (uint16_t value)
| Converts a 16bit value from little endian to the system's byte order. More...
static constexpr uint32_t | FromLE32 (uint32_t value)
| Converts a 32bit value from little endian to the system's byte order. More...
static constexpr uint64_t | FromLE64 (uint64_t value)
| Converts a 64bit value from little endian to the system's byte order. More...
static constexpr uint16_t | ToBE16 (uint16_t value)
| Converts a 16bit value from the system's byte order to big endian. More...
static constexpr uint32_t | ToBE32 (uint32_t value)
| Converts a 32bit value from the system's byte order to big endian. More...
static constexpr uint64_t | ToBE64 (uint64_t value)
| Converts a 64bit value from the system's byte order to big endian. More...
static constexpr uint16_t | ToLE16 (uint16_t value)
| Converts a 16bit value from the system's byte order to little endian. More...
static constexpr uint32_t | ToLE32 (uint32_t value)
| Converts a 32bit value from the system's byte order to little endian. More...
static constexpr uint64_t | ToLE64 (uint64_t value)
| Converts a 64bit value from the system's byte order to little endian. More...

## Macro Definition Documentation

#define IS_BIG_ENDIAN false

Definition at line 60 of file ByteOrder.hxx.

#define IS_LITTLE_ENDIAN true

Definition at line 59 of file ByteOrder.hxx.

## Function Documentation

static constexpr uint16_t ByteSwap16 | ( | uint16_t | value | ) |
| inline static

Definition at line 100 of file ByteOrder.hxx.

static constexpr uint32_t ByteSwap32 | ( | uint32_t | value | ) |
| inline static

Definition at line 110 of file ByteOrder.hxx.

static constexpr uint64_t ByteSwap64 | ( | uint64_t | value | ) |
| inline static

Definition at line 120 of file ByteOrder.hxx.

static constexpr uint16_t FromBE16 | ( | uint16_t | value | ) |
| inline static

Converts a 16bit value from big endian to the system's byte order.

Definition at line 133 of file ByteOrder.hxx.

static constexpr uint32_t FromBE32 | ( | uint32_t | value | ) |
| inline static

Converts a 32bit value from big endian to the system's byte order.

Definition at line 142 of file ByteOrder.hxx.

static constexpr uint64_t FromBE64 | ( | uint64_t | value | ) |
| inline static

Converts a 64bit value from big endian to the system's byte order.

Definition at line 151 of file ByteOrder.hxx.

static constexpr uint16_t FromLE16 | ( | uint16_t | value | ) |
| inline static

Converts a 16bit value from little endian to the system's byte order.

Definition at line 160 of file ByteOrder.hxx.

static constexpr uint32_t FromLE32 | ( | uint32_t | value | ) |
| inline static

Converts a 32bit value from little endian to the system's byte order.

Definition at line 169 of file ByteOrder.hxx.

static constexpr uint64_t FromLE64 | ( | uint64_t | value | ) |
| inline static

Converts a 64bit value from little endian to the system's byte order.

Definition at line 178 of file ByteOrder.hxx.

static constexpr uint16_t GenericByteSwap16 | ( | uint16_t | value | ) |
| inline static

Definition at line 80 of file ByteOrder.hxx.

static constexpr uint32_t GenericByteSwap32 | ( | uint32_t | value | ) |
| inline static

Definition at line 86 of file ByteOrder.hxx.

static constexpr uint64_t GenericByteSwap64 | ( | uint64_t | value | ) |
| inline static

Definition at line 93 of file ByteOrder.hxx.

static constexpr bool IsBigEndian | ( |  | ) |
| inline static

Definition at line 74 of file ByteOrder.hxx.

static constexpr bool IsLittleEndian | ( |  | ) |
| inline static

Definition at line 68 of file ByteOrder.hxx.

static constexpr uint16_t ToBE16 | ( | uint16_t | value | ) |
| inline static

Converts a 16bit value from the system's byte order to big endian.

Definition at line 187 of file ByteOrder.hxx.

static constexpr uint32_t ToBE32 | ( | uint32_t | value | ) |
| inline static

Converts a 32bit value from the system's byte order to big endian.

Definition at line 196 of file ByteOrder.hxx.

static constexpr uint64_t ToBE64 | ( | uint64_t | value | ) |
| inline static

Converts a 64bit value from the system's byte order to big endian.

Definition at line 205 of file ByteOrder.hxx.

static constexpr uint16_t ToLE16 | ( | uint16_t | value | ) |
| inline static

Converts a 16bit value from the system's byte order to little endian.

Definition at line 214 of file ByteOrder.hxx.

static constexpr uint32_t ToLE32 | ( | uint32_t | value | ) |
| inline static

Converts a 32bit value from the system's byte order to little endian.

Definition at line 223 of file ByteOrder.hxx.

static constexpr uint64_t ToLE64 | ( | uint64_t | value | ) |
| inline static

Converts a 64bit value from the system's byte order to little endian.

Definition at line 232 of file ByteOrder.hxx.