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

◆ Remove() [1/2]

void System.Text.StringBuilder.Remove ( int startIndex,
int count,
out StringBuilder chunk,
out int indexInChunk )
inlineprivate

Definition at line 2212 of file StringBuilder.cs.

2213 {
2214 int num = startIndex + count;
2215 chunk = this;
2217 int num2 = 0;
2218 while (true)
2219 {
2220 if (num - chunk.m_ChunkOffset >= 0)
2221 {
2222 if (stringBuilder == null)
2223 {
2225 num2 = num - stringBuilder.m_ChunkOffset;
2226 }
2227 if (startIndex - chunk.m_ChunkOffset >= 0)
2228 {
2229 break;
2230 }
2231 }
2232 else
2233 {
2235 }
2236 chunk = chunk.m_ChunkPrevious;
2237 }
2238 indexInChunk = startIndex - chunk.m_ChunkOffset;
2239 int num3 = indexInChunk;
2241 if (stringBuilder != chunk)
2242 {
2243 num3 = 0;
2247 if (indexInChunk == 0)
2248 {
2249 stringBuilder.m_ChunkPrevious = chunk.m_ChunkPrevious;
2251 }
2252 }
2254 if (num3 != num2)
2255 {
2256 new ReadOnlySpan<char>(stringBuilder.m_ChunkChars, num2, length).CopyTo(stringBuilder.m_ChunkChars.AsSpan(num3));
2257 }
2258 }
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)

References System.Collections.Generic.Dictionary< TKey, TValue >.CopyTo(), System.count, System.Runtime.Serialization.Dictionary, System.length, and System.startIndex.