Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Text.Json.JsonHelpers Class Reference

Classes

struct  DateTimeParseData
 

Static Public Member Functions

static bool TryAdd< TKey, TValue > (this Dictionary< TKey, TValue > dictionary, in TKey key, in TValue value)
 
static ReadOnlySpan< byte > GetSpan (this ref Utf8JsonReader reader)
 
static bool IsInRangeInclusive (uint value, uint lowerBound, uint upperBound)
 
static bool IsInRangeInclusive (int value, int lowerBound, int upperBound)
 
static bool IsInRangeInclusive (long value, long lowerBound, long upperBound)
 
static bool IsDigit (byte value)
 
static void ReadWithVerify (this ref Utf8JsonReader reader)
 
static string Utf8GetString (ReadOnlySpan< byte > bytes)
 
static Dictionary< TKey, TValue > CreateDictionaryFromCollection< TKey, TValue > (IEnumerable< KeyValuePair< TKey, TValue > > collection, IEqualityComparer< TKey > comparer)
 
static bool IsFinite (double value)
 
static bool IsFinite (float value)
 
static void ValidateInt32MaxArrayLength (uint length)
 
static bool IsValidDateTimeOffsetParseLength (int length)
 
static bool TryParseAsISO (ReadOnlySpan< byte > source, out DateTime value)
 
static bool TryParseAsISO (ReadOnlySpan< byte > source, out DateTimeOffset value)
 
static byte[] GetEscapedPropertyNameSection (ReadOnlySpan< byte > utf8Value, JavaScriptEncoder encoder)
 
static byte[] EscapeValue (ReadOnlySpan< byte > utf8Value, int firstEscapeIndexVal, JavaScriptEncoder encoder)
 

Static Private Member Functions

static bool TryParseDateTimeOffset (ReadOnlySpan< byte > source, out DateTimeParseData parseData)
 
static bool TryGetNextTwoDigits (ReadOnlySpan< byte > source, ref int value)
 
static bool TryCreateDateTimeOffset (DateTime dateTime, ref DateTimeParseData parseData, out DateTimeOffset value)
 
static bool TryCreateDateTimeOffset (ref DateTimeParseData parseData, out DateTimeOffset value)
 
static bool TryCreateDateTimeOffsetInterpretingDataAsLocalTime (DateTimeParseData parseData, out DateTimeOffset value)
 
static bool TryCreateDateTime (DateTimeParseData parseData, DateTimeKind kind, out DateTime value)
 
static byte[] GetEscapedPropertyNameSection (ReadOnlySpan< byte > utf8Value, int firstEscapeIndexVal, JavaScriptEncoder encoder)
 
static byte[] GetPropertyNameSection (ReadOnlySpan< byte > utf8Value)
 

Static Private Attributes

static readonly int[] s_daysToMonth365
 
static readonly int[] s_daysToMonth366
 

Detailed Description

Definition at line 8 of file JsonHelpers.cs.


The documentation for this class was generated from the following file: