74 ( ( (*(
KyUInt32*)x) << 8 ) & 0x00FF0000 ) |
75 ( ( (*(
KyUInt32*)x) >> 8 ) & 0x0000FF00 ) |
84 ( ( (*(
KyUInt64*)x) << 40 ) & 0x00FF000000000000ULL ) |
85 ( ( (*(
KyUInt64*)x) << 24 ) & 0x0000FF0000000000ULL ) |
86 ( ( (*(
KyUInt64*)x) << 8 ) & 0x000000FF00000000ULL ) |
87 ( ( (*(
KyUInt64*)x) >> 8 ) & 0x00000000FF000000ULL ) |
88 ( ( (*(
KyUInt64*)x) >> 24 ) & 0x0000000000FF0000ULL ) |
89 ( ( (*(
KyUInt64*)x) >> 40 ) & 0x000000000000FF00ULL ) |
106 template <
class OSTREAM>
The opposite endianness type from the current platform.
Definition: endianness.h:30
static void Swap64(void *x)
Swaps the endianness of the data in a 64-bit buffer.
Definition: endianness.h:80
std::uint64_t KyUInt64
uint64_t
Definition: types.h:30
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
The same endianness type as the current platform.
Definition: endianness.h:29
static void Swap32(void *x)
Swaps the endianness of the data in a 32-bit buffer.
Definition: endianness.h:70
static Type GetSystemEndianness()
Retrieves the endianness of the current platform.
Definition: endianness.h:34
static Type GetEndiannessFromMem32(const KyUInt32 *mem)
Retrieves the endianness from a 4-byte memory location.
Definition: endianness.h:43
Collects endianness types and utilities used in the blob serialization framework. ...
Definition: endianness.h:16
std::uint16_t KyUInt16
uint16_t
Definition: types.h:28
Big-endian format (used, for example, for PlayStation 3, Xbox 360).
Definition: endianness.h:23
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:27
Little-endian format (used, for example, for Windows, Linux).
Definition: endianness.h:22
std::int64_t KyInt64
int64_t
Definition: types.h:25
static Type GetInverseEndianness(Type endianness)
Retrieves the endianness opposite to the specified type.
Definition: endianness.h:40
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
static void SetEndiannessToMem32(Type endianness, KyUInt32 *mem)
Sets a 4-byte memory location to the specified endianness.
Definition: endianness.h:46
std::int32_t KyInt32
int32_t
Definition: types.h:24
static void SwapEndiannessInMem32(KyUInt32 *mem)
Swaps the endianness in a 4-byte memory location.
Definition: endianness.h:54
std::int8_t KyInt8
int8_t
Definition: types.h:22
Type
Enumerates possible endianness types.
Definition: endianness.h:20
static Type GetInverseSystemEndianness()
Retrieves the endianness opposite to that of the current platform.
Definition: endianness.h:37
static void Swap16(void *x)
Swaps the endianness of the data in a 16-bit buffer.
Definition: endianness.h:62
std::uint8_t KyUInt8
uint8_t
Definition: types.h:27
std::int16_t KyInt16
int16_t
Definition: types.h:23
float KyFloat32
float
Definition: types.h:32