public void AutoRaiseCapacity(int more, int capacityLimit) { if (_count + more > _array.Length) { Capacity = InternalList.NextLargerSize(_count + more - 1, capacityLimit); } }
public void AutoEnlargeChildren(int more) { if (_childCount + more > _children.Length) { int newCapacity = InternalList.NextLargerSize(_childCount + more - 1, _maxNodeSize); _children = InternalList.CopyToNewArray(_children, _childCount, newCapacity); InitEmpties(_childCount); } }
private void IncreaseCapacity() { // 4, 8, 14, 22, 34, 52, 80... Capacity = InternalList.NextLargerSize(_array.Length); }