MCPcopy Create free account
hub / github.com/arun11299/cpp-jwt / align_up

Method align_up

include/jwt/stack_alloc.hpp:121–124  ·  view source on GitHub ↗

* Rounds up the number to the next closest number * as per the alignment. */

Source from the content-addressed store, hash-verified

119 * as per the alignment.
120 */
121 constexpr static size_t align_up(size_t n) noexcept
122 {
123 return (n + (alignment - 1)) & ~(alignment - 1);
124 }
125
126private: // data members
127 /// Storage

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected