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

◆ TryGetEscapedDateTimeOffset()

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

Definition at line 232 of file JsonReaderHelper.cs.

233 {
234 int idx = source.IndexOf<byte>(92);
235 Span<byte> span = stackalloc byte[252];
237 span = span.Slice(0, written);
238 if (span.Length <= 42 && JsonHelpers.TryParseAsISO((ReadOnlySpan<byte>)span, out DateTimeOffset value2))
239 {
240 value = value2;
241 return true;
242 }
243 value = default(DateTimeOffset);
244 return false;
245 }

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

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