@@ -30,6 +30,9 @@ namespace cppcore {
30
30
31
31
#define ALIGN_MASK (value, mask ) (((value) + (mask)) & ((~0 ) & (~(mask))))
32
32
33
+ // / @brief Will calculate the alignment for the given size
34
+ // / @param[in] size he requested size.
35
+ // / @return The aligned size.
33
36
template <class T >
34
37
inline size_t align (size_t n) {
35
38
return (n + sizeof (T) - 1 ) & ~(sizeof (T) - 1 );
@@ -47,13 +50,13 @@ class DLL_CPPCORE_EXPORT MemUtils {
47
50
// / @param[inout] buffer The buffer to clear.
48
51
static void clearMemory (void *buffer, size_t size);
49
52
50
- // / @brief Will return true, if the pointer fits into the alignment.
51
- // / @param[in] ptr The pointer to check.
53
+ // / @brief Will return true, if the pointer fits into the alignment.
54
+ // / @param[in] ptr The pointer to check.
52
55
// / @param[in] align The alignment to check for.
53
56
// / @return true if aligned, false if not.
54
57
static bool isAligned (const void *ptr, size_t align);
55
58
56
- // / @brief Will align the given pointer.
59
+ // / @brief Will align the given pointer.
57
60
// / @param[in] ptr The pointer to align.
58
61
// / @param[in] extra Space for headers / meta information.
59
62
// / @param[in] align The alignment to check for.
0 commit comments