Table of Contents

Interface IAllocator<T>

Namespace
ReFuel.Memory
Assembly
ReFuel.dll

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

int

Capacity

Maximum number of items to allocated.

int Capacity { get; }

Property Value

int

Comitted

Number of items comitted.

int Comitted { get; }

Property Value

int

Methods

Allocate(int)

Allocate memory.

IAlloaction<T> Allocate(int size)

Parameters

size int

The number of items to allocate.

Returns

IAlloaction<T>

Allocated memory.

Exceptions

OutOfMemoryException

Ran out of memory.