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

◆ TryGetEscapedDateTime()

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

Definition at line 217 of file JsonReaderHelper.cs.

218 {
219 int idx = source.IndexOf<byte>(92);
220 Span<byte> span = stackalloc byte[252];
222 span = span.Slice(0, written);
223 if (span.Length <= 42 && JsonHelpers.TryParseAsISO((ReadOnlySpan<byte>)span, out DateTime value2))
224 {
225 value = value2;
226 return true;
227 }
228 value = default(DateTime);
229 return false;
230 }

References System.Text.Json.Dictionary, System.source, System.Text.Json.JsonHelpers.TryParseAsISO(), System.Unescape, and System.value.

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