nu_aligned_alloc

Allocates memory with a given alignment.

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

Parameters

size size_t

The size of the allocation, in bytes.

alignment size_t

The alignment of the allocation, in bytes.

Return Value

Type: void*

A new aligned pointer, null on failure.

See Also

Meta