Struct AllocatorManager.Block
Represents an individual allocation within an allocator.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
public struct AllocatorManager.Block
Remarks
A block consists of a Range plus metadata about the type of elements for which the block was allocated.
Fields
Name | Description |
---|---|
Allocated |
Number of items allocated for. |
Bytes |
Number of bytes per item. |
Log2Alignment | Log2 of the byte alignment. |
Padding0 | This field only exists to pad the |
Padding1 | This field only exists to pad the |
Padding2 | This field only exists to pad the |
Range | The range of memory encompassed by this block. |
Properties
Name | Description |
---|---|
Alignment | The alignment. |
Allocated |
Number of bytes allocated for this block. |
Bytes | Number of bytes requested for this block. |
Methods
Name | Description |
---|---|
Allocate() | Allocates this block. |
Dispose() | Deallocates this block. |
Free() | Frees the block. |
Try |
Attempts to allocate this block. |
Try |
Attempts to free this block. |