LayerProcGen v0.4.0
Layer-based infinite procedural generation
Loading...
Searching...
No Matches
ArrayPool< T >

Inherits IPool< T >.

Public Member Functions

 ArrayPool (int arrayLength)
T[] Get ()
 Gets an existing object from the pool, or creates one if none are available.
void Return (ref object obj)
void Return (ref T[] array)
void Return (ref T obj)
 Returns the object to the pool and sets the reference to null.
override string ToString ()

Properties

int CountActive [get]
int CountAll [get]
int CountInactive [get]

Member Function Documentation

◆ Get()

T[] Get ( )

Gets an existing object from the pool, or creates one if none are available.

Implements IPool< T >.

◆ Return()

void Return ( ref T obj)
inherited

Returns the object to the pool and sets the reference to null.

Implemented in ObjectPool< T >.

Property Documentation

◆ CountActive

int CountActive
get

Implements IPool.

◆ CountAll

int CountAll
get

Implements IPool.

◆ CountInactive

int CountInactive
get

Implements IPool.