Struct AllocatorManager.Range
A range of allocated memory.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
public struct AllocatorManager.Range
Remarks
The name is perhaps misleading: only in combination with a AllocatorManager.Block 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
Name | 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
Name | Description |
---|---|
Dispose() | Deallocates the memory represented by this range. |