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

◆ EqualsOrdinalAscii()

static bool System.ByteArrayHelpers.EqualsOrdinalAscii ( string left,
ReadOnlySpan< byte > right )
inlinestaticpackage

Definition at line 31 of file ByteArrayHelpers.cs.

32 {
33 if (left.Length != right.Length)
34 {
35 return false;
36 }
37 for (int i = 0; i < left.Length; i++)
38 {
39 if (left[i] != right[i])
40 {
41 return false;
42 }
43 }
44 return true;
45 }

References System.ReadOnlySpan< T >.Length.

Referenced by System.Net.Http.HttpConnectionBase.GetResponseHeaderValueWithCaching().