nu_mallocT

Allocates enough memory to contain Type T.

ref @nogc nothrow @trusted
void[AllocSize!T]
nu_mallocT
(
T
)
()

Return Value

Type: void[AllocSize!T]

Newly allocated memory or null on failure. To avoid a memory leak, free the memory with nu_free.

Notes: Given the implementation of nu_malloc and nu_free may be independent of the libc allocator, memory allocated with nu_malloc should always be freed with nu_free!

Meta