You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/MemoryPools/Collections/Specialized/PoolingNode.cs

18 lines
349 B

namespace MemoryPools.Collections.Specialized
{
internal sealed class PoolingNode<T> : PoolingNodeBase<T>
{
public override void Dispose()
{
base.Dispose();
Pool<PoolingNode<T>>.Return(this);
}
public override IPoolingNode<T> Init(int capacity)
{
Next = null!;
_buf = Pool.GetBuffer<T>(capacity);
return this;
}
}
}

Powered by TurnKey Linux.