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

◆ TryGetInt16Core()

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

Definition at line 4510 of file Utf8JsonReader.cs.

4511 {
4512 if (Utf8Parser.TryParse(span, out short value2, out int bytesConsumed, '\0') && span.Length == bytesConsumed)
4513 {
4514 value = value2;
4515 return true;
4516 }
4517 value = 0;
4518 return false;
4519 }
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.GetInt16WithQuotes(), and System.Text.Json.Utf8JsonReader.TryGetInt16().