mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
refactor(GFramework.Core): 移除ScopedArray的IDisposable接口实现
- 从ScopedArray结构体中移除IDisposable接口 - 保留数组池管理和自动释放功能 - 简化类型定义以提高性能表现
This commit is contained in:
parent
ea79df232b
commit
b6c13088cd
@ -89,7 +89,7 @@ public static class ArrayPoolExtensions
|
||||
/// 可自动释放的数组包装器
|
||||
/// </summary>
|
||||
/// <typeparam name="T">数组元素类型</typeparam>
|
||||
public ref struct ScopedArray<T> : IDisposable
|
||||
public ref struct ScopedArray<T>
|
||||
{
|
||||
private readonly ArrayPool<T> _pool;
|
||||
private readonly bool _clearOnReturn;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user