Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Buffers.Text.Utf8Parser Class Reference

Classes

struct  TimeSpanSplitter
 

Static Public Member Functions

static bool TryParse (ReadOnlySpan< byte > source, out bool value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out DateTime value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out DateTimeOffset value, out int bytesConsumed, char standardFormat='\0')
 
static unsafe bool TryParse (ReadOnlySpan< byte > source, out decimal value, out int bytesConsumed, char standardFormat='\0')
 
static unsafe bool TryParse (ReadOnlySpan< byte > source, out float value, out int bytesConsumed, char standardFormat='\0')
 
static unsafe bool TryParse (ReadOnlySpan< byte > source, out double value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out Guid value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out sbyte value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out short value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out int value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out long value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out byte value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out ushort value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out uint value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out ulong value, out int bytesConsumed, char standardFormat='\0')
 
static bool TryParse (ReadOnlySpan< byte > source, out TimeSpan value, out int bytesConsumed, char standardFormat='\0')
 

Private Types

enum  ParseNumberOptions { AllowExponent = 1 }
 
enum  ComponentParseResult : byte { NoMoreData , Colon , Period , ParseFailure }
 

Static Private Member Functions

static bool TryParseDateTimeOffsetDefault (ReadOnlySpan< byte > source, out DateTimeOffset value, out int bytesConsumed)
 
static bool TryParseDateTimeG (ReadOnlySpan< byte > source, out DateTime value, out DateTimeOffset valueAsOffset, out int bytesConsumed)
 
static bool TryCreateDateTimeOffset (DateTime dateTime, bool offsetNegative, int offsetHours, int offsetMinutes, out DateTimeOffset value)
 
static bool TryCreateDateTimeOffset (int year, int month, int day, int hour, int minute, int second, int fraction, bool offsetNegative, int offsetHours, int offsetMinutes, out DateTimeOffset value)
 
static bool TryCreateDateTimeOffsetInterpretingDataAsLocalTime (int year, int month, int day, int hour, int minute, int second, int fraction, out DateTimeOffset value)
 
static bool TryCreateDateTime (int year, int month, int day, int hour, int minute, int second, int fraction, DateTimeKind kind, out DateTime value)
 
static bool TryParseDateTimeOffsetO (ReadOnlySpan< byte > source, out DateTimeOffset value, out int bytesConsumed, out DateTimeKind kind)
 
static bool TryParseDateTimeOffsetR (ReadOnlySpan< byte > source, uint caseFlipXorMask, out DateTimeOffset dateTimeOffset, out int bytesConsumed)
 
static bool TryParseNormalAsFloatingPoint (ReadOnlySpan< byte > source, ref Number.NumberBuffer number, out int bytesConsumed, char standardFormat)
 
static bool TryParseAsSpecialFloatingPoint< T > (ReadOnlySpan< byte > source, T positiveInfinity, T negativeInfinity, T nan, out T value, out int bytesConsumed)
 
static bool TryParseGuidN (ReadOnlySpan< byte > text, out Guid value, out int bytesConsumed)
 
static bool TryParseGuidCore (ReadOnlySpan< byte > source, out Guid value, out int bytesConsumed, int ends)
 
static bool TryParseSByteD (ReadOnlySpan< byte > source, out sbyte value, out int bytesConsumed)
 
static bool TryParseInt16D (ReadOnlySpan< byte > source, out short value, out int bytesConsumed)
 
static bool TryParseInt32D (ReadOnlySpan< byte > source, out int value, out int bytesConsumed)
 
static bool TryParseInt64D (ReadOnlySpan< byte > source, out long value, out int bytesConsumed)
 
static bool TryParseSByteN (ReadOnlySpan< byte > source, out sbyte value, out int bytesConsumed)
 
static bool TryParseInt16N (ReadOnlySpan< byte > source, out short value, out int bytesConsumed)
 
static bool TryParseInt32N (ReadOnlySpan< byte > source, out int value, out int bytesConsumed)
 
static bool TryParseInt64N (ReadOnlySpan< byte > source, out long value, out int bytesConsumed)
 
static bool TryParseByteD (ReadOnlySpan< byte > source, out byte value, out int bytesConsumed)
 
static bool TryParseUInt16D (ReadOnlySpan< byte > source, out ushort value, out int bytesConsumed)
 
static bool TryParseUInt32D (ReadOnlySpan< byte > source, out uint value, out int bytesConsumed)
 
static bool TryParseUInt64D (ReadOnlySpan< byte > source, out ulong value, out int bytesConsumed)
 
static bool TryParseByteN (ReadOnlySpan< byte > source, out byte value, out int bytesConsumed)
 
static bool TryParseUInt16N (ReadOnlySpan< byte > source, out ushort value, out int bytesConsumed)
 
static bool TryParseUInt32N (ReadOnlySpan< byte > source, out uint value, out int bytesConsumed)
 
static bool TryParseUInt64N (ReadOnlySpan< byte > source, out ulong value, out int bytesConsumed)
 
static bool TryParseByteX (ReadOnlySpan< byte > source, out byte value, out int bytesConsumed)
 
static bool TryParseUInt16X (ReadOnlySpan< byte > source, out ushort value, out int bytesConsumed)
 
static bool TryParseUInt32X (ReadOnlySpan< byte > source, out uint value, out int bytesConsumed)
 
static bool TryParseUInt64X (ReadOnlySpan< byte > source, out ulong value, out int bytesConsumed)
 
static bool TryParseNumber (ReadOnlySpan< byte > source, ref Number.NumberBuffer number, out int bytesConsumed, ParseNumberOptions options, out bool textUsedExponentNotation)
 
static bool TryParseTimeSpanBigG (ReadOnlySpan< byte > source, out TimeSpan value, out int bytesConsumed)
 
static bool TryParseTimeSpanC (ReadOnlySpan< byte > source, out TimeSpan value, out int bytesConsumed)
 
static bool TryParseTimeSpanFraction (ReadOnlySpan< byte > source, out uint value, out int bytesConsumed)
 
static bool TryCreateTimeSpan (bool isNegative, uint days, uint hours, uint minutes, uint seconds, uint fraction, out TimeSpan timeSpan)
 
static bool TryParseTimeSpanLittleG (ReadOnlySpan< byte > source, out TimeSpan value, out int bytesConsumed)
 

Static Private Attributes

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

Detailed Description

Definition at line 6 of file Utf8Parser.cs.


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