Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
TypeCompatibleBytes.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TAlignedBytes< Size, 1 >
 
struct  TTypeCompatibleBytes< ElementType >
 

Macros

#define IMPLEMENT_ALIGNED_STORAGE(Align)
 

Functions

 IMPLEMENT_ALIGNED_STORAGE (16)
 
 IMPLEMENT_ALIGNED_STORAGE (8)
 
 IMPLEMENT_ALIGNED_STORAGE (4)
 
 IMPLEMENT_ALIGNED_STORAGE (2)
 

Macro Definition Documentation

◆ IMPLEMENT_ALIGNED_STORAGE

#define IMPLEMENT_ALIGNED_STORAGE ( Align)
Value:
template<int32 Size> \
struct TAlignedBytes<Size,Align> \
{ \
struct MS_ALIGN(Align) TPadding \
{ \
uint8 Pad[Size]; \
TPadding Padding; \
};
CONSTEXPR T Align(const T Ptr, int32 Alignment)
FPlatformTypes::uint8 uint8
Definition BasicTypes.h:96
#define GCC_ALIGN(n)
Definition BasicTypes.h:22

A macro that implements TAlignedBytes for a specific alignment.

Definition at line 33 of file TypeCompatibleBytes.h.

Function Documentation

◆ IMPLEMENT_ALIGNED_STORAGE() [1/4]

IMPLEMENT_ALIGNED_STORAGE ( 16 )

◆ IMPLEMENT_ALIGNED_STORAGE() [2/4]

IMPLEMENT_ALIGNED_STORAGE ( 2 )

◆ IMPLEMENT_ALIGNED_STORAGE() [3/4]

IMPLEMENT_ALIGNED_STORAGE ( 4 )

◆ IMPLEMENT_ALIGNED_STORAGE() [4/4]

IMPLEMENT_ALIGNED_STORAGE ( 8 )