# AllocatorManager.IAllocator

> An allocator function pointer.

## Definition

* **Type:** Interface
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public interface AllocatorManager.IAllocator : IDisposable
```

## Properties

| Property                                                                                                                | Description                                                         |
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [Function](/engine/6000.7/script-reference/unity/collections/allocatormanager/iallocator/function.md)                   | The allocator function. It can allocate, deallocate, or reallocate. |
| [Handle](/engine/6000.7/script-reference/unity/collections/allocatormanager/iallocator/handle.md)                       | This allocator.                                                     |
| [IsAutoDispose](/engine/6000.7/script-reference/unity/collections/allocatormanager/iallocator/isautodispose.md)         | Check whether an allocator will automatically dispose allocations.  |
| [IsCustomAllocator](/engine/6000.7/script-reference/unity/collections/allocatormanager/iallocator/iscustomallocator.md) | Check whether an allocator is a custom allocator                    |
| [ToAllocator](/engine/6000.7/script-reference/unity/collections/allocatormanager/iallocator/toallocator.md)             | Cast the Allocator index into Allocator                             |

## Methods

| Method                                                                                      | Description                    |
| ------------------------------------------------------------------------------------------- | ------------------------------ |
| [Try](/engine/6000.7/script-reference/unity/collections/allocatormanager/iallocator/try.md) | Invoke the allocator function. |

## Inheritance

**Inherited Members:**

* [IDisposable.Dispose()](https://learn.microsoft.com/dotnet/api/system.idisposable.dispose)
