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

◆ DigitsToUInt64()

static unsafe ulong System.Number.DigitsToUInt64 ( byte * p,
int count )
inlinestaticprivate

Definition at line 3682 of file Number.cs.

3683 {
3684 byte* ptr = p + count;
3685 ulong num = (ulong)(*p - 48);
3686 for (p++; p < ptr; p++)
3687 {
3688 num = 10 * num + *p - 48;
3689 }
3690 return num;
3691 }

References System.count.

Referenced by System.Number.NumberToDoubleFloatingPointBits(), System.Number.NumberToHalfFloatingPointBits(), and System.Number.NumberToSingleFloatingPointBits().