AllocatorManager.Range
A range of allocated memory.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Struct
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
- Implements: IDisposable
public struct AllocatorManager.Range : IDisposable
Remarks
The name is perhaps misleading: only in combination with a AllocatorManager.Block does a have sufficient information to represent the number of bytes in an allocation. The reason is its own type that's separate from stems from some efficiency concerns in the implementation details. In most cases, a is only used in conjunction with an associated .
RangeRangeBlockRangeBlockFields
Value | Description |
|---|---|
| Allocator | The allocator function used for this range. |
| Items | Number of items allocated in this range. |
| Pointer | Pointer to the start of this range. |
Methods
Method | Description |
|---|---|
| Dispose | Deallocates the memory represented by this range. |