terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
System.Number Class Reference
+ Collaboration diagram for System.Number:

Classes

struct  NumberBuffer
 

Static Public Member Functions

static string FormatDecimal (decimal value, global::System.ReadOnlySpan< char > format, global::System.Globalization.NumberFormatInfo info)
 
static bool TryFormatDecimal (decimal value, global::System.ReadOnlySpan< char > format, global::System.Globalization.NumberFormatInfo info, global::System.Span< char > destination, out int charsWritten)
 
static string FormatDouble (double value, string format, global::System.Globalization.NumberFormatInfo info)
 
static bool TryFormatDouble (double value, global::System.ReadOnlySpan< char > format, global::System.Globalization.NumberFormatInfo info, global::System.Span< char > destination, out int charsWritten)
 
static string FormatSingle (float value, string format, global::System.Globalization.NumberFormatInfo info)
 
static bool TryFormatSingle (float value, global::System.ReadOnlySpan< char > format, global::System.Globalization.NumberFormatInfo info, global::System.Span< char > destination, out int charsWritten)
 
static unsafe string FormatInt32 (int value, global::System.ReadOnlySpan< char > format, global::System.IFormatProvider provider)
 
static unsafe bool TryFormatInt32 (int value, global::System.ReadOnlySpan< char > format, global::System.IFormatProvider provider, global::System.Span< char > destination, out int charsWritten)
 
static unsafe string FormatUInt32 (uint value, global::System.ReadOnlySpan< char > format, global::System.IFormatProvider provider)
 
static unsafe bool TryFormatUInt32 (uint value, global::System.ReadOnlySpan< char > format, global::System.IFormatProvider provider, global::System.Span< char > destination, out int charsWritten)
 
static string FormatInt64 (long value, global::System.ReadOnlySpan< char > format, global::System.IFormatProvider provider)
 
static bool TryFormatInt64 (long value, global::System.ReadOnlySpan< char > format, global::System.IFormatProvider provider, global::System.Span< char > destination, out int charsWritten)
 
static string FormatUInt64 (ulong value, global::System.ReadOnlySpan< char > format, global::System.IFormatProvider provider)
 
static bool TryFormatUInt64 (ulong value, global::System.ReadOnlySpan< char > format, global::System.IFormatProvider provider, global::System.Span< char > destination, out int charsWritten)
 

Static Package Functions

static unsafe char * UInt32ToDecChars (char *bufferEnd, uint value, int digits)
 
static char ParseFormatSpecifier (global::System.ReadOnlySpan< char > format, out int digits)
 
static unsafe void NumberToString (ref global::System.Text.ValueStringBuilder sb, ref global::System.Number.NumberBuffer number, char format, int nMaxDigits, global::System.Globalization.NumberFormatInfo info, bool isDecimal)
 
static unsafe void NumberToStringFormat (ref global::System.Text.ValueStringBuilder sb, ref global::System.Number.NumberBuffer number, global::System.ReadOnlySpan< char > format, global::System.Globalization.NumberFormatInfo info)
 
static int ParseInt32 (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info)
 
static long ParseInt64 (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info)
 
static uint ParseUInt32 (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info)
 
static ulong ParseUInt64 (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info)
 
static bool TryParseInt32 (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out int result)
 
static bool TryParseInt64 (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out long result)
 
static bool TryParseUInt32 (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out uint result)
 
static bool TryParseUInt64 (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out ulong result)
 
static decimal ParseDecimal (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info)
 
static double ParseDouble (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info)
 
static float ParseSingle (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info)
 
static bool TryParseDecimal (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out decimal result)
 
static bool TryParseDouble (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out double result)
 
static bool TryParseSingle (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out float result)
 
static unsafe bool TryStringToNumber (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, ref global::System.Number.NumberBuffer number, global::System.Globalization.NumberFormatInfo info, bool parseDecimal)
 

Static Private Member Functions

static unsafe void DecimalToNumber (decimal value, ref global::System.Number.NumberBuffer number)
 
static string FormatDouble (ref global::System.Text.ValueStringBuilder sb, double value, global::System.ReadOnlySpan< char > format, global::System.Globalization.NumberFormatInfo info)
 
static string FormatSingle (ref global::System.Text.ValueStringBuilder sb, float value, global::System.ReadOnlySpan< char > format, global::System.Globalization.NumberFormatInfo info)
 
static bool TryCopyTo (string source, global::System.Span< char > destination, out int charsWritten)
 
static unsafe void Int32ToNumber (int value, ref global::System.Number.NumberBuffer number)
 
static string NegativeInt32ToDecStr (int value, int digits, string sNegative)
 
static bool TryNegativeInt32ToDecStr (int value, int digits, string sNegative, global::System.Span< char > destination, out int charsWritten)
 
static string Int32ToHexStr (int value, char hexBase, int digits)
 
static bool TryInt32ToHexStr (int value, char hexBase, int digits, global::System.Span< char > destination, out int charsWritten)
 
static unsafe char * Int32ToHexChars (char *buffer, uint value, int hexBase, int digits)
 
static unsafe void UInt32ToNumber (uint value, ref global::System.Number.NumberBuffer number)
 
static string UInt32ToDecStr (uint value, int digits)
 
static bool TryUInt32ToDecStr (uint value, int digits, global::System.Span< char > destination, out int charsWritten)
 
static unsafe void Int64ToNumber (long input, ref global::System.Number.NumberBuffer number)
 
static string NegativeInt64ToDecStr (long input, int digits, string sNegative)
 
static bool TryNegativeInt64ToDecStr (long input, int digits, string sNegative, global::System.Span< char > destination, out int charsWritten)
 
static string Int64ToHexStr (long value, char hexBase, int digits)
 
static bool TryInt64ToHexStr (long value, char hexBase, int digits, global::System.Span< char > destination, out int charsWritten)
 
static unsafe void UInt64ToNumber (ulong value, ref global::System.Number.NumberBuffer number)
 
static string UInt64ToDecStr (ulong value, int digits)
 
static bool TryUInt64ToDecStr (ulong value, int digits, global::System.Span< char > destination, out int charsWritten)
 
static void FormatCurrency (ref global::System.Text.ValueStringBuilder sb, ref global::System.Number.NumberBuffer number, int nMinDigits, int nMaxDigits, global::System.Globalization.NumberFormatInfo info)
 
static unsafe void FormatFixed (ref global::System.Text.ValueStringBuilder sb, ref global::System.Number.NumberBuffer number, int nMinDigits, int nMaxDigits, global::System.Globalization.NumberFormatInfo info, int[] groupDigits, string sDecimal, string sGroup)
 
static void FormatNumber (ref global::System.Text.ValueStringBuilder sb, ref global::System.Number.NumberBuffer number, int nMinDigits, int nMaxDigits, global::System.Globalization.NumberFormatInfo info)
 
static unsafe void FormatScientific (ref global::System.Text.ValueStringBuilder sb, ref global::System.Number.NumberBuffer number, int nMinDigits, int nMaxDigits, global::System.Globalization.NumberFormatInfo info, char expChar)
 
static unsafe void FormatExponent (ref global::System.Text.ValueStringBuilder sb, global::System.Globalization.NumberFormatInfo info, int value, char expChar, int minDigits, bool positiveSign)
 
static unsafe void FormatGeneral (ref global::System.Text.ValueStringBuilder sb, ref global::System.Number.NumberBuffer number, int nMinDigits, int nMaxDigits, global::System.Globalization.NumberFormatInfo info, char expChar, bool bSuppressScientific)
 
static void FormatPercent (ref global::System.Text.ValueStringBuilder sb, ref global::System.Number.NumberBuffer number, int nMinDigits, int nMaxDigits, global::System.Globalization.NumberFormatInfo info)
 
static unsafe void RoundNumber (ref global::System.Number.NumberBuffer number, int pos)
 
static int FindSection (global::System.ReadOnlySpan< char > format, int section)
 
static uint Low32 (ulong value)
 
static uint High32 (ulong value)
 
static uint Int64DivMod1E9 (ref ulong value)
 
static unsafe bool NumberToInt32 (ref global::System.Number.NumberBuffer number, ref int value)
 
static unsafe bool NumberToInt64 (ref global::System.Number.NumberBuffer number, ref long value)
 
static unsafe bool NumberToUInt32 (ref global::System.Number.NumberBuffer number, ref uint value)
 
static unsafe bool NumberToUInt64 (ref global::System.Number.NumberBuffer number, ref ulong value)
 
static unsafe bool ParseNumber (ref char *str, char *strEnd, global::System.Globalization.NumberStyles styles, ref global::System.Number.NumberBuffer number, global::System.Globalization.NumberFormatInfo info, bool parseDecimal)
 
static bool TryParseInt32IntegerStyle (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out int result, ref bool failureIsOverflow)
 
static bool TryParseInt64IntegerStyle (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out long result, ref bool failureIsOverflow)
 
static bool TryParseUInt32IntegerStyle (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out uint result, ref bool failureIsOverflow)
 
static bool TryParseUInt32HexNumberStyle (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out uint result, ref bool failureIsOverflow)
 
static bool TryParseUInt64IntegerStyle (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out ulong result, ref bool failureIsOverflow)
 
static bool TryParseUInt64HexNumberStyle (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, global::System.Globalization.NumberFormatInfo info, out ulong result, ref bool failureIsOverflow)
 
static unsafe bool NumberBufferToDecimal (ref global::System.Number.NumberBuffer number, ref decimal value)
 
static unsafe void StringToNumber (global::System.ReadOnlySpan< char > value, global::System.Globalization.NumberStyles styles, ref global::System.Number.NumberBuffer number, global::System.Globalization.NumberFormatInfo info, bool parseDecimal)
 
static bool TrailingZeros (global::System.ReadOnlySpan< char > value, int index)
 
static unsafe char * MatchChars (char *p, char *pEnd, string value)
 
static bool IsWhite (int ch)
 
static bool IsDigit (int ch)
 
static void ThrowOverflowOrFormatException (bool overflow, string overflowResourceKey)
 
static bool NumberBufferToDouble (ref global::System.Number.NumberBuffer number, ref double value)
 
static unsafe uint DigitsToInt (char *p, int count)
 
static ulong Mul32x32To64 (uint a, uint b)
 
static ulong Mul64Lossy (ulong a, ulong b, ref int pexp)
 
static int abs (int value)
 
static unsafe double NumberToDouble (ref global::System.Number.NumberBuffer number)
 
static unsafe void DoubleToNumber (double value, int precision, ref global::System.Number.NumberBuffer number)
 
static Number ()
 

Static Private Attributes

static readonly string[] s_posCurrencyFormats
 
static readonly string[] s_negCurrencyFormats
 
static readonly string[] s_posPercentFormats
 
static readonly string[] s_negPercentFormats
 
static readonly string[] s_negNumberFormats
 
static readonly int[] s_charToHexLookup
 
static readonly ulong[] s_rgval64Power10
 
static readonly sbyte[] s_rgexp64Power10
 
static readonly ulong[] s_rgval64Power10By16
 
static readonly short[] s_rgexp64Power10By16
 

Detailed Description

Definition at line 12 of file Number.cs.


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