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

◆ HasMoreData() [1/2]

bool System.Text.Json.Utf8JsonReader.HasMoreData ( )
inlineprivate

Definition at line 619 of file Utf8JsonReader.cs.

620 {
621 if (_consumed >= (uint)_buffer.Length)
622 {
624 {
625 if (_bitStack.CurrentDepth != 0)
626 {
627 ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ZeroDepthAtEnd, 0);
628 }
629 if (_readerOptions.CommentHandling == JsonCommentHandling.Allow && _tokenType == JsonTokenType.Comment)
630 {
631 return false;
632 }
633 if (_tokenType != JsonTokenType.EndArray && _tokenType != JsonTokenType.EndObject)
634 {
635 ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.InvalidEndOfJsonNonPrimitive, 0);
636 }
637 }
638 return false;
639 }
640 return true;
641 }

References System.Text.Json.Utf8JsonReader._bitStack, System.Text.Json.Utf8JsonReader._buffer, System.Text.Json.Utf8JsonReader._consumed, System.Text.Json.Utf8JsonReader._isNotPrimitive, System.Text.Json.Utf8JsonReader._readerOptions, System.Text.Json.Utf8JsonReader._tokenType, System.Text.Json.JsonReaderOptions.CommentHandling, System.Text.Json.BitStack.CurrentDepth, System.Text.Json.Dictionary, System.Text.Json.Utf8JsonReader.IsLastSpan, System.ReadOnlySpan< T >.Length, and System.Text.Json.ThrowHelper.ThrowJsonReaderException().

Referenced by System.Text.Json.Utf8JsonReader.ConsumeNextToken(), System.Text.Json.Utf8JsonReader.ConsumeNextTokenFromLastNonCommentToken(), System.Text.Json.Utf8JsonReader.ConsumeNextTokenUntilAfterAllCommentsAreSkipped(), System.Text.Json.Utf8JsonReader.ConsumePropertyName(), System.Text.Json.Utf8JsonReader.ConsumeValue(), System.Text.Json.Utf8JsonReader.ReadSingleSegment(), System.Text.Json.Utf8JsonReader.SkipAllComments(), and System.Text.Json.Utf8JsonReader.SkipAllComments().