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

◆ Add() [2/2]

unsafe void System.Number.BigInteger.Add ( uint value)
inline

Definition at line 498 of file Number.cs.

499 {
500 int length = _length;
501 if (length == 0)
502 {
503 SetUInt32(out this, value);
504 return;
505 }
506 _blocks[0] += value;
507 if (_blocks[0] >= value)
508 {
509 return;
510 }
511 for (int i = 1; i < length; i++)
512 {
513 ref uint reference = ref _blocks[i];
514 reference++;
515 if (_blocks[i] != 0)
516 {
517 return;
518 }
519 }
520 _blocks[length] = 1u;
521 _length = length + 1;
522 }
unsafe fixed uint _blocks[115]
Definition Number.cs:51
static unsafe void SetUInt32(out BigInteger result, uint value)
Definition Number.cs:592

References System.Number.BigInteger._blocks, System.Number.BigInteger._length, System.length, System.Number.BigInteger.SetUInt32(), and System.value.