您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

25 行
617 B

using System.Collections.Generic;
namespace UnityEngine.Graphing
{
public static class StackPool<T>
{
// Object pool to avoid allocations.
static readonly ObjectPool<Stack<T>> k_StackPool = new ObjectPool<Stack<T>>(null, l => l.Clear());
public static Stack<T> Get()
{
return k_StackPool.Get();
}
public static PooledObject<Stack<T>> GetDisposable()
{
return k_StackPool.GetDisposable();
}
public static void Release(Stack<T> toRelease)
{
k_StackPool.Release(toRelease);
}
}
}