Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EnsureCapacity()

void System.Collections.SortedList.EnsureCapacity ( int min)
inlineprivateinherited

Definition at line 791 of file SortedList.cs.

792 {
793 int num = ((keys.Length == 0) ? 16 : (keys.Length * 2));
794 if ((uint)num > Array.MaxLength)
795 {
796 num = Array.MaxLength;
797 }
798 if (num < min)
799 {
800 num = min;
801 }
802 Capacity = num;
803 }

References System.Collections.SortedList.Capacity, and System.Array.MaxLength.

Referenced by System.Collections.SortedList.Insert().