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

◆ TryGetInt32Core()

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

Definition at line 4542 of file Utf8JsonReader.cs.

4543 {
4544 if (Utf8Parser.TryParse(span, out int value2, out int bytesConsumed, '\0') && span.Length == bytesConsumed)
4545 {
4546 value = value2;
4547 return true;
4548 }
4549 value = 0;
4550 return false;
4551 }
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.GetInt32WithQuotes(), and System.Text.Json.Utf8JsonReader.TryGetInt32().