nu_aligned_realloc_destructive

Reallocates memory with a given alignment.

export extern (C) nothrow @nogc pure
void*
nu_aligned_realloc_destructive
(
void* ptr
,
size_t size
,
size_t alignment
)

Parameters

ptr void*

Pointer to prior allocation made with nu_aligned_alloc

size size_t

The size of the allocation, in bytes.

alignment size_t

The alignment of the allocation, in bytes.

Return Value

Type: void*

The address of the pointer after the reallocation, null on failure.

Notes: The alignment provided HAS to match the original alignment of ptr

See Also

Meta