NuHeap.alloc

Allocates memory on the heap.

class NuHeap
@nogc abstract
void*
alloc
(
size_t bytes
)

Parameters

bytes size_t

The amount of bytes to allocate from the heap.

Return Value

Type: void*

A pointer to the memory allocated on the heap. null if operation failed.

Meta