feat:1、创建项目

This commit is contained in:
2026-06-25 15:22:28 +08:00
commit c05a65cdc3
6577 changed files with 1168287 additions and 0 deletions
@@ -0,0 +1,24 @@
using System.Collections.Generic;
namespace ChillConnect
{
public static class ListPool<T>
{
private static readonly ObjectPool<List<T>> s_ListPool = new(null, Clear);
private static void Clear(List<T> l)
{
l.Clear();
}
public static List<T> Get()
{
return s_ListPool.Get();
}
public static void Release(List<T> toRelease)
{
s_ListPool.Release(toRelease);
}
}
}