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

◆ TryGetDecimalCore()

bool System.Text.Json.Utf8JsonReader.TryGetDecimalCore ( out decimal value,
ReadOnlySpan< byte > span )
inlinepackage

Definition at line 4757 of file Utf8JsonReader.cs.

4758 {
4759 if (Utf8Parser.TryParse(span, out decimal value2, out int bytesConsumed, '\0') && span.Length == bytesConsumed)
4760 {
4761 value = value2;
4762 return true;
4763 }
4764 value = default(decimal);
4765 return false;
4766 }
static bool TryParse(ReadOnlySpan< byte > source, out bool value, out int bytesConsumed, char standardFormat='\0')

References System.Text.Json.Dictionary, System.Buffers.Text.Utf8Parser.TryParse(), and System.value.

Referenced by System.Text.Json.Utf8JsonReader.GetDecimalWithQuotes(), and System.Text.Json.Utf8JsonReader.TryGetDecimal().