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/PoolingList.cs

19 lines
446 B

namespace MemoryPools.Collections.Specialized
{
public sealed class PoolingList<T> : PoolingListBase<T>
{
public PoolingList() => Init();
public PoolingList<T> Init()
{
_root = Pool.GetBuffer<IPoolingNode<T>>(PoolsDefaults.DefaultPoolBucketSize);
_ver = 0;
return this;
}
protected override IPoolingNode<T> CreateNodeHolder()
{
return Pool<PoolingNode<T>>.Get().Init(PoolsDefaults.DefaultPoolBucketSize);
}
}
}

Powered by TurnKey Linux.