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

◆ TryGetEscapedGuid()

static bool System.Text.Json.JsonReaderHelper.TryGetEscapedGuid ( ReadOnlySpan< byte > source,
out Guid value )
inlinestatic

Definition at line 247 of file JsonReaderHelper.cs.

248 {
249 int idx = source.IndexOf<byte>(92);
250 Span<byte> span = stackalloc byte[216];
252 span = span.Slice(0, written);
253 if (span.Length == 36 && Utf8Parser.TryParse((ReadOnlySpan<byte>)span, out Guid value2, out int _, 'D'))
254 {
255 value = value2;
256 return true;
257 }
258 value = default(Guid);
259 return false;
260 }
static bool TryParse(ReadOnlySpan< byte > source, out bool value, out int bytesConsumed, char standardFormat='\0')

References System.Text.Json.Dictionary, System.source, System.Buffers.Text.Utf8Parser.TryParse(), System.Unescape, and System.value.

Referenced by System.Text.Json.Utf8JsonReader.TryGetGuidCore(), and System.Text.Json.JsonDocument.TryGetValue().