Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TypeCompatibleBytes.h File Reference
#include "CoreTypes.h"
#include <string.h>
#include <type_traits>
+ Include dependency graph for TypeCompatibleBytes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Functions

template<typename ToType , typename FromType , std::enable_if_t< sizeof(ToType)==sizeof(FromType) &&std::is_trivially_copyable_v< ToType > &&std::is_trivially_copyable_v< FromType > > * = nullptr>
ToType BitCast (const FromType &From)
 

Function Documentation

◆ BitCast()

template<typename ToType , typename FromType , std::enable_if_t< sizeof(ToType)==sizeof(FromType) &&std::is_trivially_copyable_v< ToType > &&std::is_trivially_copyable_v< FromType > > * = nullptr>
ToType BitCast ( const FromType & From)
inline

Definition at line 36 of file TypeCompatibleBytes.h.