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

◆ TryGetUInt16Core()

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

Definition at line 4607 of file Utf8JsonReader.cs.

4608 {
4609 if (Utf8Parser.TryParse(span, out ushort value2, out int bytesConsumed, '\0') && span.Length == bytesConsumed)
4610 {
4611 value = value2;
4612 return true;
4613 }
4614 value = 0;
4615 return false;
4616 }
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.GetUInt16WithQuotes(), and System.Text.Json.Utf8JsonReader.TryGetUInt16().