mirror of https://github.com/ogoun/Zero.git
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.
18 lines
348 B
18 lines
348 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;
|
|
}
|
|
}
|
|
} |