A* Pathfinding Project  4.0.8
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
ArrayPoolExtensions Class Reference

Static Public Member Functions

static T[] ToArrayFromPool< T > (this List< T > list)
 Identical to ToArray but it uses ArrayPool<T> to avoid allocations if possible.
 

Member Function Documentation

static T [] ToArrayFromPool< T > ( this List< T >  list)
static

Identical to ToArray but it uses ArrayPool<T> to avoid allocations if possible.

Use with caution as pooling too many arrays with different lengths that are rarely being reused will lead to an effective memory leak.


The documentation for this class was generated from the following file: