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

◆ GetSingleFloatingPointConstant()

float System.Text.Json.Utf8JsonReader.GetSingleFloatingPointConstant ( )
inlinepackage

Definition at line 4283 of file Utf8JsonReader.cs.

4284 {
4285 ReadOnlySpan<byte> unescapedSpan = GetUnescapedSpan();
4286 if (JsonReaderHelper.TryGetFloatingPointConstant(unescapedSpan, out float value))
4287 {
4288 return value;
4289 }
4290 throw ThrowHelper.GetFormatException(NumericType.Single);
4291 }
ReadOnlySpan< byte > GetUnescapedSpan()

References System.Text.Json.Dictionary, System.Text.Json.ThrowHelper.GetFormatException(), System.Text.Json.Utf8JsonReader.GetUnescapedSpan(), System.Text.Json.JsonReaderHelper.TryGetFloatingPointConstant(), and System.value.