Mono.Math.BigInteger.Incr2 C# (CSharp) Method

Incr2() public method

Increments this by two
public Incr2 ( ) : void
return void
		public void Incr2 ()
		{
			int i = 0;

			data [0] += 2;

			// If there was no carry, nothing to do
			if (data [0] < 2) {

				// Account for the first carry
				data [++i]++;

				// Keep adding until no carry
				while (data [i++] == 0x0)
					data [i]++;

				// See if we increased the data length
				if (length == (uint)i)
					length++;
			}
		}