Checks if a pointer complies with a given alignment * * @param[in] ptr Pointer to check * @param[in] alignment Alignment value * * @return True if the pointer is aligned else false */
| 199 | * @return True if the pointer is aligned else false |
| 200 | */ |
| 201 | inline bool check_aligned(void *ptr, const size_t alignment) |
| 202 | { |
| 203 | return (reinterpret_cast<std::uintptr_t>(ptr) % alignment) == 0; |
| 204 | } |
| 205 | |
| 206 | /** Convert string to lower case. |
| 207 | * |
no outgoing calls
no test coverage detected