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

◆ CheckLiteral()

bool System.Text.Json.Utf8JsonReader.CheckLiteral ( ReadOnlySpan< byte > span,
ReadOnlySpan< byte > literal )
inlineprivate

Definition at line 822 of file Utf8JsonReader.cs.

823 {
824 int num = 0;
825 for (int i = 1; i < literal.Length; i++)
826 {
827 if (span.Length > i)
828 {
829 if (span[i] != literal[i])
830 {
833 }
834 continue;
835 }
836 num = i;
837 break;
838 }
839 if (IsLastSpan)
840 {
841 _bytePositionInLine += num;
843 }
844 return false;
845 }
void ThrowInvalidLiteral(ReadOnlySpan< byte > span)

References System.Text.Json.Utf8JsonReader._bytePositionInLine, System.Text.Json.Dictionary, System.Text.Json.Utf8JsonReader.IsLastSpan, and System.Text.Json.Utf8JsonReader.ThrowInvalidLiteral().

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