refactor(GFramework.Core): 移除ScopedArray的IDisposable接口实现

- 从ScopedArray结构体中移除IDisposable接口
- 保留数组池管理和自动释放功能
- 简化类型定义以提高性能表现
This commit is contained in:
GeWuYou 2026-03-11 12:44:32 +08:00
parent ea79df232b
commit b6c13088cd

View File

@ -89,7 +89,7 @@ public static class ArrayPoolExtensions
/// 可自动释放的数组包装器 /// 可自动释放的数组包装器
/// </summary> /// </summary>
/// <typeparam name="T">数组元素类型</typeparam> /// <typeparam name="T">数组元素类型</typeparam>
public ref struct ScopedArray<T> : IDisposable public ref struct ScopedArray<T>
{ {
private readonly ArrayPool<T> _pool; private readonly ArrayPool<T> _pool;
private readonly bool _clearOnReturn; private readonly bool _clearOnReturn;