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

◆ DigitsToUInt32()

static unsafe uint System.Number.DigitsToUInt32 ( byte * p,
int count )
inlinestaticprivate

Definition at line 3671 of file Number.cs.

3672 {
3673 byte* ptr = p + count;
3674 uint num = (uint)(*p - 48);
3675 for (p++; p < ptr; p++)
3676 {
3677 num = 10 * num + *p - 48;
3678 }
3679 return num;
3680 }

References System.count.

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