| Parameter | Description |
|---|---|
| handle | A handle to the allocator. |
| pointer | A pointer to the allocated memory. |
| itemSizeInBytes | The size in bytes of the allocation. |
| alignmentInBytes | The alignment in bytes (must be a power of two). |
| items | The number of values that the memory was allocated for. |
Frees an allocation.
For some allocators, the size of the allocation must be known to properly deallocate.
Other allocators only need the pointer when deallocating and so will ignore itemSizeInBytes, alignmentInBytes and items.
| Parameter | Description |
|---|---|
| handle | A handle to the allocator. |
| pointer | A pointer to the allocated memory. |
Frees an allocation.
| Parameter | Description |
|---|---|
| handle | A handle to the allocator. |
| pointer | A pointer to the allocated memory. |
| items | The number of values that the memory was allocated for. |
Frees an allocation.
For some allocators, the size of the allocation must be known to properly deallocate.
Other allocators only need the pointer when deallocating and so will ignore T and items.