Struct AllocatorManager.Block
A block of memory with a Range and metadata for size in bytes of each item in the block, number of allocated items, and alignment.
Syntax
public struct Block : IDisposable
Fields
AllocatedItems
How many items were actually allocated.
Declaration
public int AllocatedItems
Field Value
BytesPerItem
Number of bytes in each item requested.
Declaration
Field Value
Log2Alignment
(1 << this) is the byte alignment.
Declaration
public byte Log2Alignment
Field Value
Padding0
Declaration
Field Value
Padding1
Declaration
Field Value
Padding2
Declaration
Field Value
Range
Declaration
public AllocatorManager.Range Range
Field Value
Properties
Alignment
Declaration
public int Alignment { get; set; }
Property Value
Bytes
Declaration
public long Bytes { get; }
Property Value
Methods
Allocate()
Declaration
Dispose()
Declaration
Free()
Declaration
TryAllocate()
Declaration
Returns
TryFree()
Declaration
Returns