音频内容
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* 对象池接口
|
||||
*/
|
||||
|
||||
namespace AibisDream.Kit
|
||||
{
|
||||
public interface IPool<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// 分配对象
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
T Allocate();
|
||||
|
||||
/// <summary>
|
||||
/// 回收对象
|
||||
/// </summary>
|
||||
/// <param name="obj"></param>
|
||||
/// <returns></returns>
|
||||
bool Recycle(T obj);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user