Shortcuts

Function ripple::align_ptr

Function Documentation

auto ripple::align_ptr(const void *ptr, size_t alignment) noexcept -> void*

Gets a pointer with an address aligned to the goven alignment.

Note

In debug, this will assert at runtime if the alignemnt is not a power of two, in release, the behaviour is undefined.

Parameters
  • ptr: The pointer to align.

  • alignment: The alignment to ensure.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples