Ark Server API (ASA) - Wiki
|
Go to the source code of this file.
Functions | |
template<typename T > | |
FORCEINLINE constexpr T | Align (T Val, uint64 Alignment) |
template<typename T > | |
FORCEINLINE constexpr T | AlignDown (T Val, uint64 Alignment) |
template<typename T > | |
FORCEINLINE constexpr bool | IsAligned (T Val, uint64 Alignment) |
template<typename T > | |
FORCEINLINE constexpr T | AlignArbitrary (T Val, uint64 Alignment) |
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. |
Definition at line 18 of file AlignmentTemplates.h.
Aligns a value to the nearest higher multiple of 'Alignment'.
Val | The value to align. |
Alignment | The alignment value, can be any arbitrary value. |
Definition at line 66 of file AlignmentTemplates.h.
Aligns a value to the nearest lower 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. |
Definition at line 34 of file AlignmentTemplates.h.
Checks if a pointer is aligned to the specified alignment.
Val | The value to align. |
Alignment | The alignment value, must be a power of two. |
Definition at line 50 of file AlignmentTemplates.h.