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

◆ GetBits()

static void System.Reflection.Internal.DecimalUtilities.GetBits ( this decimal value,
out bool isNegative,
out byte scale,
out uint low,
out uint mid,
out uint high )
inlinestatic

Definition at line 12 of file DecimalUtilities.cs.

13 {
14 Span<int> destination = stackalloc int[4];
15 decimal.GetBits(value, destination);
16 low = (uint)destination[0];
17 mid = (uint)destination[1];
18 high = (uint)destination[2];
19 scale = (byte)(destination[3] >> 16);
20 isNegative = (destination[3] & 0x80000000u) != 0;
21 }

References System.destination, and System.value.