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

◆ Append() [3/24]

unsafe void System.Text.ValueStringBuilder.Append ( char * value,
int length )
inline

Definition at line 115 of file ValueStringBuilder.cs.

116 {
117 int pos = _pos;
118 if (pos > _chars.Length - length)
119 {
120 Grow(length);
121 }
122 Span<char> span = _chars.Slice(_pos, length);
123 for (int i = 0; i < span.Length; i++)
124 {
125 span[i] = *(value++);
126 }
127 _pos += length;
128 }
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.Text.ValueStringBuilder.Grow(), System.length, System.Span< T >.Length, System.Span< T >.Slice(), and System.value.