MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / align_one

Function align_one

extlibs/sol3/include/sol/sol.hpp:9293–9297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9291 }
9292
9293 inline void align_one(std::size_t a, std::size_t s, void*& target_alignment) {
9294 std::size_t space = (std::numeric_limits<std::size_t>::max)();
9295 target_alignment = align(a, s, target_alignment, space);
9296 target_alignment = static_cast<void*>(static_cast<char*>(target_alignment) + s);
9297 }
9298
9299 template <typename... Args>
9300 std::size_t aligned_space_for(void* alignment = nullptr) {

Callers 1

aligned_space_forFunction · 0.85

Calls 1

alignFunction · 0.85

Tested by

no test coverage detected