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

◆ GetComment()

string System.Text.Json.Utf8JsonReader.GetComment ( )
inline

Definition at line 4051 of file Utf8JsonReader.cs.

4052 {
4053 if (TokenType != JsonTokenType.Comment)
4054 {
4055 throw ThrowHelper.GetInvalidOperationException_ExpectedComment(TokenType);
4056 }
4057 ReadOnlySpan<byte> readOnlySpan;
4058 if (!HasValueSequence)
4059 {
4061 }
4062 else
4063 {
4066 }
4067 ReadOnlySpan<byte> utf8Unescaped = readOnlySpan;
4068 return JsonReaderHelper.TranscodeHelper(utf8Unescaped);
4069 }
ReadOnlySequence< byte > ValueSequence

References System.Text.Json.Dictionary, System.Text.Json.ThrowHelper.GetInvalidOperationException_ExpectedComment(), System.Text.Json.Utf8JsonReader.HasValueSequence, System.Text.Json.JsonReaderHelper.TranscodeHelper(), System.Text.Json.Utf8JsonReader.ValueSequence, and System.Text.Json.Utf8JsonReader.ValueSpan.