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

Function align_one

Libs/sol/sol.hpp:9853–9857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9851 }
9852
9853 inline void align_one(std::size_t a, std::size_t s, void*& target_alignment) {
9854 std::size_t space = (std::numeric_limits<std::size_t>::max)();
9855 target_alignment = align(a, s, target_alignment, space);
9856 target_alignment = static_cast<void*>(static_cast<char*>(target_alignment) + s);
9857 }
9858
9859 template <typename... Args>
9860 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