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 |
---|---|
AllocatedItems | Number of items allocated for. |
BytesPerItem | 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. |
AllocatedBytes | 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. |
TryAllocate() | Attempts to allocate this block. |
TryFree() | Attempts to free this block. |