| Parameter | Description |
|---|---|
| t | The allocator of type T used to allocator memory. |
| sizeOf | The number of bytes to allocate to item. |
| alignOf | The alignment in bytes. |
| items | The number of items. Defaults to 1. |
void* A pointer to the allocated memory.
Allocates memory directly from an allocator.
| Parameter | Description |
|---|---|
| handle | A handle to the allocator. |
| itemSizeInBytes | The number of bytes to allocate. |
| alignmentInBytes | The alignment in bytes (must be a power of two). |
| items | The number of values to allocate space for. Defaults to 1. |
void* A pointer to the allocated memory.
Allocates memory from an allocator.
| Parameter | Description |
|---|---|
| handle | A handle to the allocator. |
| items | The number of values to allocate for space for. Defaults to 1. |
T* A pointer to the allocated memory.
Allocates enough memory for an unmanaged value of a given type.