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

◆ Append() [12/24]

void System.Text.ValueStringBuilder.Append ( char c,
int count )
inline

Definition at line 101 of file ValueStringBuilder.cs.

102 {
103 if (_pos > _chars.Length - count)
104 {
105 Grow(count);
106 }
107 Span<char> span = _chars.Slice(_pos, count);
108 for (int i = 0; i < span.Length; i++)
109 {
110 span[i] = c;
111 }
112 _pos += count;
113 }
Span< T > Slice(int start)
Definition Span.cs:271
int Length
Definition Span.cs:70
void Grow(int additionalCapacityBeyondPos)

References System.Text.ValueStringBuilder._chars, System.Text.ValueStringBuilder._pos, System.count, System.Text.ValueStringBuilder.Grow(), System.Span< T >.Length, and System.Span< T >.Slice().