20 lines
474 B
C#
20 lines
474 B
C#
namespace Recyclable.Collections.Pools
|
|
{
|
|
public sealed class RecyclableArrayPoolChunk<T>
|
|
{
|
|
private static readonly T[] _empty = Array.Empty<T>();
|
|
|
|
internal static T[] Empty => _empty;
|
|
|
|
internal T[] Buffer;
|
|
internal int Index;
|
|
internal RecyclableArrayPoolChunk<T>? Previous;
|
|
internal RecyclableArrayPoolChunk<T>? Next;
|
|
|
|
public RecyclableArrayPoolChunk()
|
|
{
|
|
Buffer = _empty;
|
|
}
|
|
}
|
|
}
|