Function ArrayPool.Release

Release (ref T[] array, bool allowNonPowerOfTwo=…)

Pool an array.

Public Static
void Release (

ref T[]

array

bool

allowNonPowerOfTwo=false

)

Pool an array.

If the array was got using the ClaimWithExactLength method then the allowNonPowerOfTwo parameter must be set to true. The parameter exists to make sure that non power of two arrays are not pooled unintentionally which could lead to memory leaks.