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

◆ ExpandByABlock()

void System.Text.StringBuilder.ExpandByABlock ( int minBlockCharCount)
inlineprivate

Definition at line 2128 of file StringBuilder.cs.

2129 {
2131 {
2132 throw new ArgumentOutOfRangeException("requiredLength", SR.ArgumentOutOfRange_SmallCapacity);
2133 }
2134 int num = Math.Max(minBlockCharCount, Math.Min(Length, 8000));
2135 if (m_ChunkOffset + m_ChunkLength + num < num)
2136 {
2137 throw new OutOfMemoryException();
2138 }
2139 char[] chunkChars = GC.AllocateUninitializedArray<char>(num);
2140 m_ChunkPrevious = new StringBuilder(this);
2142 m_ChunkLength = 0;
2144 }

References System.Text.StringBuilder.StringBuilder(), System.SR.ArgumentOutOfRange_SmallCapacity, System.Runtime.Serialization.Dictionary, System.Text.StringBuilder.Length, System.Text.StringBuilder.m_ChunkChars, System.Text.StringBuilder.m_ChunkLength, System.Text.StringBuilder.m_ChunkOffset, System.Text.StringBuilder.m_ChunkPrevious, System.Text.StringBuilder.m_MaxCapacity, System.Math.Max(), and System.Math.Min().

Referenced by System.Text.StringBuilder.Append(), System.Text.StringBuilder.Append(), and System.Text.StringBuilder.AppendCore().