Class CacheableBigInteger
Provides a mechanism that optimally handles operations on a BigInteger instance by caching smaller chunks of values before being applied to the big boi.
public sealed class CacheableBigInteger
- Inheritance
-
CacheableBigInteger
- Inherited Members
- Extension Methods
Constructors
CacheableBigInteger()
Initializes a new instance of the CacheableBigInteger class.
public CacheableBigInteger()
CacheableBigInteger(long)
Initializes a new instance of the CacheableBigInteger class.
public CacheableBigInteger(long value)
Parameters
valuelongThe value to initialize the instance from.
CacheableBigInteger(BigInteger)
Initializes a new instance of the CacheableBigInteger class.
public CacheableBigInteger(BigInteger value)
Parameters
valueBigIntegerThe value to initialize the instance from.
Properties
Value
Gets or sets the value of the BigInteger instance.
public BigInteger Value { get; set; }
Property Value
Methods
Add(long)
Adds a value to the current BigInteger value.
public void Add(long value)
Parameters
valuelongThe value to add to the current BigInteger value.
Add(BigInteger)
Adds a value to the current BigInteger value.
public void Add(BigInteger value)
Parameters
valueBigIntegerThe value to add to the current BigInteger value.
Divide(long)
Divides a value from the current BigInteger value.
public void Divide(long value)
Parameters
valuelongThe value to divide the current BigInteger value by.
Divide(BigInteger)
Divides a value from the current BigInteger value.
public void Divide(BigInteger value)
Parameters
valueBigIntegerThe value to divide the current BigInteger value by.
Multiply(long)
Multiplies a value to the current BigInteger value.
public void Multiply(long value)
Parameters
valuelongThe value to multiply the current BigInteger value by.
Multiply(BigInteger)
Multiplies a value to the current BigInteger value.
public void Multiply(BigInteger value)
Parameters
valueBigIntegerThe value to multiply the current BigInteger value by.
Subtract(long)
Subtracts a value from the current BigInteger value.
public void Subtract(long value)
Parameters
valuelongThe value to subtract from the current BigInteger value.
Subtract(BigInteger)
Subtracts a value from the current BigInteger value.
public void Subtract(BigInteger value)
Parameters
valueBigIntegerThe value to subtract from the current BigInteger value.
Operators
implicit operator BigInteger(CacheableBigInteger)
public static implicit operator BigInteger(CacheableBigInteger value)
Parameters
valueCacheableBigInteger
Returns
implicit operator CacheableBigInteger(long)
public static implicit operator CacheableBigInteger(long value)
Parameters
valuelong
Returns
implicit operator CacheableBigInteger(BigInteger)
public static implicit operator CacheableBigInteger(BigInteger value)
Parameters
valueBigInteger