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

◆ DiscardWhiteSpaces()

static Span< byte > System.Security.Cryptography.FromBase64Transform.DiscardWhiteSpaces ( Span< byte > inputBuffer,
Span< byte > tmpBuffer )
inlinestaticprivate

Definition at line 106 of file FromBase64Transform.cs.

107 {
108 int length = 0;
109 for (int i = 0; i < inputBuffer.Length; i++)
110 {
111 if (!IsWhitespace(inputBuffer[i]))
112 {
113 tmpBuffer[length++] = inputBuffer[i];
114 }
115 }
116 return tmpBuffer.Slice(0, length);
117 }
Span< T > Slice(int start)
Definition Span.cs:271
int Length
Definition Span.cs:70

References System.Security.Cryptography.FromBase64Transform.IsWhitespace(), System.length, System.Span< T >.Length, and System.Span< T >.Slice().

Referenced by System.Security.Cryptography.FromBase64Transform.GetTempBuffer().