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

◆ Decimal() [10/13]

System.Decimal.Decimal ( ReadOnlySpan< int > bits)
inline

Definition at line 2238 of file Decimal.cs.

2239 {
2240 if (bits.Length == 4)
2241 {
2242 int flags = bits[3];
2243 if (IsValid(flags))
2244 {
2245 _lo64 = (uint)bits[0] + ((ulong)(uint)bits[1] << 32);
2246 _hi32 = (uint)bits[2];
2247 _flags = flags;
2248 return;
2249 }
2250 }
2251 throw new ArgumentException(SR.Arg_DecBitCtor);
2252 }
static bool IsValid(int flags)
Definition Decimal.cs:2224
readonly uint _hi32
Definition Decimal.cs:2073
readonly int _flags
Definition Decimal.cs:2071
readonly ulong _lo64
Definition Decimal.cs:2075

References System.Decimal._flags, System.Decimal._hi32, System.Decimal._lo64, System.SR.Arg_DecBitCtor, System.Decimal.IsValid(), and System.ReadOnlySpan< T >.Length.