Function ripple::offset_ptr¶
Function Documentation¶
-
auto
ripple
::
offset_ptr
(const void *ptr, uint32_t amount) noexcept -> void*¶ Gets a new ptr offset by the given amount from the ptr.
- Note
This does not ensure alignemt. If the pointer needs to be aligned, then pass the result to
align()
.- See
align
- Return
A new pointer at the offset location.
- Parameters
ptr
: The pointer to offset.amount
: The amount to offset ptr by.