<SparseBufferWriter>F45F6294D210FA2242B547865B79D0588E6F19482EBAA0844E2CC05369DD6AF3A__SparseBufferWriter
static class <SparseBufferWriter>F45F6294D210FA2242B547865B79D0588E6F19482EBAA0844E2CC05369DD6AF3A__SparseBufferWriter
using System;
namespace DotNext.Buffers
{
internal static class <SparseBufferWriter>F45F6294D210FA2242B547865B79D0588E6F19482EBAA0844E2CC05369DD6AF3A__SparseBufferWriter
{
internal static int LinearGrowth(int chunkSize, ref int chunkIndex)
{
return Math.Max(chunkSize * ++chunkIndex, chunkSize);
}
internal static int ExponentialGrowth(int chunkSize, ref int chunkIndex)
{
return Math.Max(chunkSize << ++chunkIndex, chunkSize);
}
internal static int NoGrowth(int chunkSize, ref int chunkIndex)
{
return chunkSize;
}
}
}