Represents an individual allocation within an allocator.
A block consists of a AllocatorManager.Block.Range plus metadata about the type of elements for which the block was allocated.
| Property | Description |
|---|---|
| Alignment | The alignment. |
| AllocatedBytes | Number of bytes allocated for this block. |
| AllocatedItems | Number of items allocated for. |
| Bytes | Number of bytes requested for this block. |
| BytesPerItem | Number of bytes per item. |
| Log2Alignment | Log2 of the byte alignment. |
| Padding0 | This field only exists to pad the Block struct. Ignore it. |
| Padding1 | This field only exists to pad the Block struct. Ignore it. |
| Padding2 | This field only exists to pad the Block struct. Ignore it. |
| Range | The range of memory encompassed by this block. |
| Method | 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. |