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

◆ Add()

void System.Text.SegmentStringBuilder.Add ( ReadOnlyMemory< char > segment)
inline

Definition at line 24 of file SegmentStringBuilder.cs.

25 {
26 ReadOnlyMemory<char>[] array = _array;
27 int count = _count;
28 if ((uint)count < (uint)array.Length)
29 {
30 array[count] = segment;
31 _count = count + 1;
32 }
33 else
34 {
35 GrowAndAdd(segment);
36 }
37 }
void GrowAndAdd(ReadOnlyMemory< char > segment)

References System.Text.SegmentStringBuilder._array, System.Text.SegmentStringBuilder._count, System.array, System.count, and System.Text.SegmentStringBuilder.GrowAndAdd().