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

◆ ConsumeNumber()

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

Definition at line 857 of file Utf8JsonReader.cs.

858 {
860 {
861 return false;
862 }
863 _tokenType = JsonTokenType.Number;
866 if (_consumed >= (uint)_buffer.Length && _isNotPrimitive)
867 {
868 ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ExpectedEndOfDigitNotFound, _buffer[_consumed - 1]);
869 }
870 return true;
871 }
ReadOnlySpan< T > Slice(int start)
bool TryGetNumber(ReadOnlySpan< byte > data, out int consumed)

References System.Text.Json.Utf8JsonReader._buffer, System.Text.Json.Utf8JsonReader._bytePositionInLine, System.Text.Json.Utf8JsonReader._consumed, System.Text.Json.Utf8JsonReader._isNotPrimitive, System.Text.Json.Utf8JsonReader._tokenType, System.Text.Json.Dictionary, System.ReadOnlySpan< T >.Length, System.ReadOnlySpan< T >.Slice(), System.Text.Json.ThrowHelper.ThrowJsonReaderException(), and System.Text.Json.Utf8JsonReader.TryGetNumber().

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