tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
align.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

auto align (etl::size_t alignment, etl::size_t size, void *&ptr, etl::size_t &space) noexcept -> void *
 Given a pointer ptr to a buffer of size space, returns a pointer aligned by the specified alignment for size number of bytes and decreases space argument by the number of bytes used for alignment. The first aligned address is returned.