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

◆ TryGetSByteCore()

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

Definition at line 4478 of file Utf8JsonReader.cs.

4479 {
4480 if (Utf8Parser.TryParse(span, out sbyte value2, out int bytesConsumed, '\0') && span.Length == bytesConsumed)
4481 {
4482 value = value2;
4483 return true;
4484 }
4485 value = 0;
4486 return false;
4487 }
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.GetSByteWithQuotes(), and System.Text.Json.Utf8JsonReader.TryGetSByte().