alignedReallocDiscard

Reallocates an aligned memory chunk allocated by alignedMalloc or alignedRealloc. Functionally equivalent to Visual C++ _aligned_realloc. Do not mix allocations with different alignment.

The "discard" version doesn't preserve data.

Important: alignedRealloc(p, 0) does not necessarily return null, and its result _has_ to be freed with alignedFree.

Important: Don't call that often in a real-time thread without amortization (keep a capacity). If you need to allocate from nextBuffer, do prefer the use of Vec which doesn't shrink, and will reuse the allocation.

nothrow @nogc
void*
alignedReallocDiscard
(
void* aligned
,
size_t size
,
size_t alignment
)

Meta