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

◆ CopyToTempBufferWithoutWhiteSpace()

static void System.Convert.CopyToTempBufferWithoutWhiteSpace ( ReadOnlySpan< char > chars,
Span< char > tempBuffer,
out int consumed,
out int charsWritten )
inlinestaticprivate

Definition at line 2987 of file Convert.cs.

2988 {
2989 charsWritten = 0;
2990 for (int i = 0; i < chars.Length; i++)
2991 {
2992 char c = chars[i];
2993 if (!c.IsSpace())
2994 {
2995 tempBuffer[charsWritten++] = c;
2996 if (charsWritten == tempBuffer.Length)
2997 {
2998 consumed = i + 1;
2999 return;
3000 }
3001 }
3002 }
3003 consumed = chars.Length;
3004 }
int Length
Definition Span.cs:70

References System.chars, and System.Span< T >.Length.

Referenced by System.Convert.TryFromBase64Chars().