# AllocatorManager.Range

> A range of allocated memory.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct AllocatorManager.Range : IDisposable
```

## Remarks

The name is perhaps misleading: only in combination with a [AllocatorManager.Block](/engine/6000.7/script-reference/unity/collections/allocatormanager/block.md) does a `Range` have sufficient information to represent the number of bytes in an allocation. The reason `Range` is its own type that's separate from `Block` stems from some efficiency concerns in the implementation details. In most cases, a `Range` is only used in conjunction with an associated `Block`.

## Fields

| Value                                                                                              | Description                                 |
| -------------------------------------------------------------------------------------------------- | ------------------------------------------- |
| [Allocator](/engine/6000.7/script-reference/unity/collections/allocatormanager/range/allocator.md) | The allocator function used for this range. |
| [Items](/engine/6000.7/script-reference/unity/collections/allocatormanager/range/items.md)         | Number of items allocated in this range.    |
| [Pointer](/engine/6000.7/script-reference/unity/collections/allocatormanager/range/pointer.md)     | Pointer to the start of this range.         |

## Methods

| Method                                                                                         | Description                                       |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [Dispose](/engine/6000.7/script-reference/unity/collections/allocatormanager/range/dispose.md) | Deallocates the memory represented by this range. |
