KarmaEngine
Game Engine for practical learning and research purposes
|
This file contains the class FUObjectAllocator along with the global variable declaration and several helper routines. More...
Go to the source code of this file.
Typedefs | |
typedef void(* | Karma::FUObjectAllocatorCallback) (void *InObject, const std::string &InName, size_t InSize, size_t InAlignment, class UClass *InClass) |
A definition useful for UObjects statistics. | |
Functions | |
template<typename T> | |
FORCEINLINE constexpr T | Karma::Align (T Val, uint64_t Alignment) |
This file contains the class FUObjectAllocator along with the global variable declaration and several helper routines.
typedef void(* Karma::FUObjectAllocatorCallback)(void *InObject, const std::string &InName, size_t InSize, size_t InAlignment, class UClass *InClass) |
A definition useful for UObjects statistics.
We are defining here again because we don't want dependency with Object.h include which already has this definition
InObject | The pointer to the newlly allocated UObject |
For UObjects statistics
|
constexpr |
Aligns a value to the nearest higher multiple of 'Alignment', which must be a power of two.
Val | The value to align. |
Alignment | The alignment value, must be a power of two. |