| 4 | namespace pmon::util |
| 5 | { |
| 6 | inline constexpr size_t GetPadding(size_t byteIndex, size_t alignment) |
| 7 | { |
| 8 | const auto partialBytes = byteIndex % alignment; |
| 9 | const auto padding = (alignment - partialBytes) % alignment; |
| 10 | return padding; |
| 11 | } |
| 12 | |
| 13 | template<typename T> |
| 14 | constexpr size_t GetPadding(size_t byteIndex) |
no outgoing calls
no test coverage detected