Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
ByteSwap.h File Reference
#include "../BasicTypes.h"
+ Include dependency graph for ByteSwap.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BYTESWAP_ORDER16_unsigned(x)   ((((x) >> 8) & 0xff) + (((x) << 8) & 0xff00))
 
#define BYTESWAP_ORDER32_unsigned(x)   (((x) >> 24) + (((x) >> 8) & 0xff00) + (((x) << 8) & 0xff0000) + ((x) << 24))
 
#define INTEL_ORDER16(x)   (x)
 
#define INTEL_ORDER32(x)   (x)
 
#define INTEL_ORDERF(x)   (x)
 
#define INTEL_ORDER64(x)   (x)
 
#define INTEL_ORDER_TCHARARRAY(x)
 

Functions

static FORCEINLINE uint16 BYTESWAP_ORDER16 (uint16 val)
 
static FORCEINLINE int16 BYTESWAP_ORDER16 (int16 val)
 
static FORCEINLINE uint32 BYTESWAP_ORDER32 (uint32 val)
 
static FORCEINLINE int32 BYTESWAP_ORDER32 (int32 val)
 
static FORCEINLINE float BYTESWAP_ORDERF (float val)
 
static FORCEINLINE uint64 BYTESWAP_ORDER64 (uint64 Value)
 
static FORCEINLINE int64 BYTESWAP_ORDER64 (int64 Value)
 
static FORCEINLINE void BYTESWAP_ORDER_TCHARARRAY (TCHAR *str)
 

Macro Definition Documentation

◆ BYTESWAP_ORDER16_unsigned

#define BYTESWAP_ORDER16_unsigned ( x)    ((((x) >> 8) & 0xff) + (((x) << 8) & 0xff00))

Definition at line 8 of file ByteSwap.h.

◆ BYTESWAP_ORDER32_unsigned

#define BYTESWAP_ORDER32_unsigned ( x)    (((x) >> 24) + (((x) >> 8) & 0xff00) + (((x) << 8) & 0xff0000) + ((x) << 24))

Definition at line 9 of file ByteSwap.h.

◆ INTEL_ORDER16

#define INTEL_ORDER16 ( x)    (x)

Definition at line 80 of file ByteSwap.h.

◆ INTEL_ORDER32

#define INTEL_ORDER32 ( x)    (x)

Definition at line 81 of file ByteSwap.h.

◆ INTEL_ORDER64

#define INTEL_ORDER64 ( x)    (x)

Definition at line 83 of file ByteSwap.h.

◆ INTEL_ORDER_TCHARARRAY

#define INTEL_ORDER_TCHARARRAY ( x)

Definition at line 84 of file ByteSwap.h.

◆ INTEL_ORDERF

#define INTEL_ORDERF ( x)    (x)

Definition at line 82 of file ByteSwap.h.

Function Documentation

◆ BYTESWAP_ORDER16() [1/2]

static FORCEINLINE int16 BYTESWAP_ORDER16 ( int16 val)
static

Definition at line 17 of file ByteSwap.h.

◆ BYTESWAP_ORDER16() [2/2]

static FORCEINLINE uint16 BYTESWAP_ORDER16 ( uint16 val)
static

Definition at line 12 of file ByteSwap.h.

◆ BYTESWAP_ORDER32() [1/2]

static FORCEINLINE int32 BYTESWAP_ORDER32 ( int32 val)
static

Definition at line 30 of file ByteSwap.h.

◆ BYTESWAP_ORDER32() [2/2]

static FORCEINLINE uint32 BYTESWAP_ORDER32 ( uint32 val)
static

Definition at line 25 of file ByteSwap.h.

◆ BYTESWAP_ORDER64() [1/2]

static FORCEINLINE int64 BYTESWAP_ORDER64 ( int64 Value)
static

Definition at line 58 of file ByteSwap.h.

◆ BYTESWAP_ORDER64() [2/2]

static FORCEINLINE uint64 BYTESWAP_ORDER64 ( uint64 Value)
static

Definition at line 46 of file ByteSwap.h.

◆ BYTESWAP_ORDER_TCHARARRAY()

static FORCEINLINE void BYTESWAP_ORDER_TCHARARRAY ( TCHAR * str)
static

Definition at line 72 of file ByteSwap.h.

◆ BYTESWAP_ORDERF()

static FORCEINLINE float BYTESWAP_ORDERF ( float val)
static

Definition at line 38 of file ByteSwap.h.