Table of Contents

Class CacheableBigInteger

Namespace
Garyon.Objects
Assembly
Garyon.dll

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

value long

The value to initialize the instance from.

CacheableBigInteger(BigInteger)

Initializes a new instance of the CacheableBigInteger class.

public CacheableBigInteger(BigInteger value)

Parameters

value BigInteger

The value to initialize the instance from.

Properties

Value

Gets or sets the value of the BigInteger instance.

public BigInteger Value { get; set; }

Property Value

BigInteger

Methods

Add(long)

Adds a value to the current BigInteger value.

public void Add(long value)

Parameters

value long

The value to add to the current BigInteger value.

Add(BigInteger)

Adds a value to the current BigInteger value.

public void Add(BigInteger value)

Parameters

value BigInteger

The value to add to the current BigInteger value.

Divide(long)

Divides a value from the current BigInteger value.

public void Divide(long value)

Parameters

value long

The value to divide the current BigInteger value by.

Divide(BigInteger)

Divides a value from the current BigInteger value.

public void Divide(BigInteger value)

Parameters

value BigInteger

The value to divide the current BigInteger value by.

Multiply(long)

Multiplies a value to the current BigInteger value.

public void Multiply(long value)

Parameters

value long

The value to multiply the current BigInteger value by.

Multiply(BigInteger)

Multiplies a value to the current BigInteger value.

public void Multiply(BigInteger value)

Parameters

value BigInteger

The value to multiply the current BigInteger value by.

Subtract(long)

Subtracts a value from the current BigInteger value.

public void Subtract(long value)

Parameters

value long

The value to subtract from the current BigInteger value.

Subtract(BigInteger)

Subtracts a value from the current BigInteger value.

public void Subtract(BigInteger value)

Parameters

value BigInteger

The value to subtract from the current BigInteger value.

Operators

implicit operator BigInteger(CacheableBigInteger)

public static implicit operator BigInteger(CacheableBigInteger value)

Parameters

value CacheableBigInteger

Returns

BigInteger

implicit operator CacheableBigInteger(long)

public static implicit operator CacheableBigInteger(long value)

Parameters

value long

Returns

CacheableBigInteger

implicit operator CacheableBigInteger(BigInteger)

public static implicit operator CacheableBigInteger(BigInteger value)

Parameters

value BigInteger

Returns

CacheableBigInteger