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

◆ UnescapeAndCompare()

bool System.Text.Json.Utf8JsonReader.UnescapeAndCompare ( ReadOnlySpan< byte > other)
inlineprivate

Definition at line 386 of file Utf8JsonReader.cs.

387 {
388 ReadOnlySpan<byte> valueSpan = ValueSpan;
389 if (valueSpan.Length < other.Length || valueSpan.Length / 6 > other.Length)
390 {
391 return false;
392 }
393 int num = valueSpan.IndexOf<byte>(92);
394 if (!other.StartsWith(valueSpan.Slice(0, num)))
395 {
396 return false;
397 }
398 return JsonReaderHelper.UnescapeAndCompare(valueSpan.Slice(num), other.Slice(num));
399 }

References System.Text.Json.Dictionary, System.other, System.Text.Json.JsonReaderHelper.UnescapeAndCompare(), and System.Text.Json.Utf8JsonReader.ValueSpan.

Referenced by System.Text.Json.Utf8JsonReader.TextEqualsHelper().