Interface IAllocator<T>
Interface for arenas that can allocate a specific type.
public interface IAllocator<T> : IAllocator, IDisposable where T : struct
Type Parameters
T
The type to allocate.
- Inherited Members
Properties
Allocated
Number of items allocated.
int Allocated { get; }
Property Value
Capacity
Maximum number of items to allocated.
int Capacity { get; }
Property Value
Comitted
Number of items comitted.
int Comitted { get; }
Property Value
Methods
Allocate(int)
Allocate memory.
IAlloaction<T> Allocate(int size)
Parameters
size
intThe number of items to allocate.
Returns
- IAlloaction<T>
Allocated memory.
Exceptions
- OutOfMemoryException
Ran out of memory.