Karma Engine
Loading...
Searching...
No Matches
Karma::FMemory Struct Reference

Public Types

enum  AllocationHints {
  None = -1 , Default , Temporary , SmallPool ,
  Max
}
 

Static Public Member Functions

Memory functions (wrapper for FPlatformMemory)
static FORCEINLINE void * Memmove (void *Dest, const void *Src, SIZE_T Count)
 
static FORCEINLINE int32_t Memcmp (const void *Buf1, const void *Buf2, SIZE_T Count)
 
static FORCEINLINE void * Memset (void *Dest, uint8_t Char, SIZE_T Count)
 
template<class T >
static FORCEINLINE void Memset (T &Src, uint8_t ValueToSet)
 
static FORCEINLINE void * Memzero (void *Dest, SIZE_T Count)
 
template<class T >
static FORCEINLINE void Memzero (T &Src)
 
static FORCEINLINE void * Memcpy (void *Dest, const void *Src, SIZE_T Count)
 
template<class T >
static FORCEINLINE void Memcpy (T &Dest, const T &Src)
 
static FORCEINLINE void * BigBlockMemcpy (void *Dest, const void *Src, SIZE_T Count)
 
static FORCEINLINE void * StreamingMemcpy (void *Dest, const void *Src, SIZE_T Count)
 
static FORCEINLINE void * ParallelMemcpy (void *Dest, const void *Src, SIZE_T Count, EMemcpyCachePolicy Policy=EMemcpyCachePolicy::StoreCached)
 
static FORCEINLINE void Memswap (void *Ptr1, void *Ptr2, SIZE_T Size)
 
static FORCEINLINE void * SystemMalloc (SIZE_T Size)
 
static FORCEINLINE void SystemFree (void *Ptr)
 
static void * Malloc (SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT)
 
static FORCEINLINE void * MallocZeroed (SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT)
 

Member Enumeration Documentation

◆ AllocationHints

Some allocators can be given hints to treat allocations differently depending on how the memory is used, it's lifetime etc.


The documentation for this struct was generated from the following files: