nu_aligned_size

Gets the amount of bytes to allocate when requesting a specific amount of memory with a given alignment.

export extern (C) nothrow @nogc @safe pure
size_t
nu_aligned_size
(
size_t request
,
size_t alignment
)

Parameters

request size_t

How many bytes to allocate

alignment size_t

The alignment of the requested allocation, in bytes.

Return Value

Type: size_t

request aligned to alignment, taking in to account pointer alignment requirements.

Meta