21 lines
551 B
C#
21 lines
551 B
C#
namespace Recyclable.Collections.Pools
|
|
{
|
|
public sealed class BiDirectionalRecyclableArrayPoolChunk<T>
|
|
{
|
|
private static readonly T[] _empty = Array.Empty<T>();
|
|
|
|
internal static T[] Empty => _empty;
|
|
|
|
internal T[] Value;
|
|
internal int Top;
|
|
internal int Bottom;
|
|
internal BiDirectionalRecyclableArrayPoolChunk<T>? Previous;
|
|
internal BiDirectionalRecyclableArrayPoolChunk<T>? Next;
|
|
|
|
public BiDirectionalRecyclableArrayPoolChunk()
|
|
{
|
|
Value = _empty;
|
|
}
|
|
}
|
|
}
|