Nez.Portable/Utils/Collections/FastList.cs
/// <summary>
/// if the buffer is at its max more space will be allocated to fit additionalItemCount
/// </summary>
if the buffer is at its max more space will be allocated to fit additionalItemCount
if the buffer is at its max more space will be allocated to fit additionalItemCount
public void ensureCapacity(int additionalItemCount = 1)
        {
            if (length + additionalItemCount >= buffer.Length)
                Array.Resize(ref buffer, Math.Max(buffer.Length << 1, length + additionalItemCount));
        }
public void ensureCapacity ( int additionalItemCount = 1 ) { if ( length + additionalItemCount >= buffer . Length ) Array . Resize ( ref buffer , Math . Max ( buffer . Length << 1 , length + additionalItemCount ) ) ; }
if the buffer is at its max more space will be allocated to fit additionalItemCount
if the buffer is at its max more space will be allocated to fit additionalItemCount
additionalItemCount
int