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

◆ TryGetByteCore()

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

Definition at line 4445 of file Utf8JsonReader.cs.

4446 {
4447 if (Utf8Parser.TryParse(span, out byte value2, out int bytesConsumed, '\0') && span.Length == bytesConsumed)
4448 {
4449 value = value2;
4450 return true;
4451 }
4452 value = 0;
4453 return false;
4454 }
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.GetByteWithQuotes(), and System.Text.Json.Utf8JsonReader.TryGetByte().