Skip to content

Class Lidgren::Network::NetBigInteger

ClassList > Lidgren > Network > NetBigInteger

Big integer class based on BouncyCastle ( http://www.bouncycastle.org ) big integer code.

Public Static Attributes

Type Name
readonly NetBigInteger One = = createUValueOf(1)
readonly NetBigInteger Ten = = createUValueOf(10)
readonly NetBigInteger Three = = createUValueOf(3)
readonly NetBigInteger Two = = createUValueOf(2)
readonly NetBigInteger Zero = = new NetBigInteger(0, ZeroMagnitude, false)

Public Properties

Type Name
property int BitLength
property int IntValue
property int SignValue

Public Functions

Type Name
NetBigInteger Abs ()
NetBigInteger Add (NetBigInteger value)
NetBigInteger And (NetBigInteger value)
int CompareTo (object obj)
int CompareTo (NetBigInteger value)
NetBigInteger Divide (NetBigInteger val)
NetBigInteger[] DivideAndRemainder (NetBigInteger val)
override bool Equals (object obj)
NetBigInteger Gcd (NetBigInteger value)
override int GetHashCode ()
int GetLowestSetBit ()
NetBigInteger Max (NetBigInteger value)
NetBigInteger Min (NetBigInteger value)
NetBigInteger Mod (NetBigInteger m)
NetBigInteger ModInverse (NetBigInteger m)
NetBigInteger ModPow (NetBigInteger exponent, NetBigInteger m)
NetBigInteger Modulus (NetBigInteger val)
NetBigInteger Multiply (NetBigInteger val)
NetBigInteger Negate ()
NetBigInteger (string value)
NetBigInteger (string str, int radix)
NetBigInteger (byte[] bytes)
NetBigInteger (byte[] bytes, int offset, int length)
NetBigInteger (int sign, byte[] bytes)
NetBigInteger (int sign, byte[] bytes, int offset, int length)
NetBigInteger Not ()
NetBigInteger Pow (int exp)
NetBigInteger Remainder (NetBigInteger n)
NetBigInteger ShiftLeft (int n)
NetBigInteger ShiftRight (int n)
NetBigInteger Subtract (NetBigInteger n)
bool TestBit (int n)
byte[] ToByteArray ()
byte[] ToByteArrayUnsigned ()
override string ToString ()
string ToString (int radix)

Public Static Functions

Type Name
NetBigInteger ValueOf (long value)

Public Static Attributes Documentation

variable One

readonly NetBigInteger Lidgren.Network.NetBigInteger.One;

variable Ten

readonly NetBigInteger Lidgren.Network.NetBigInteger.Ten;

variable Three

readonly NetBigInteger Lidgren.Network.NetBigInteger.Three;

variable Two

readonly NetBigInteger Lidgren.Network.NetBigInteger.Two;

variable Zero

readonly NetBigInteger Lidgren.Network.NetBigInteger.Zero;

Public Properties Documentation

property BitLength

int Lidgren.Network.NetBigInteger.BitLength;

property IntValue

int Lidgren.Network.NetBigInteger.IntValue;

property SignValue

int Lidgren.Network.NetBigInteger.SignValue;

Public Functions Documentation

function Abs

inline NetBigInteger Lidgren::Network::NetBigInteger::Abs () 

function Add

inline NetBigInteger Lidgren::Network::NetBigInteger::Add (
    NetBigInteger value
) 

function And

inline NetBigInteger Lidgren::Network::NetBigInteger::And (
    NetBigInteger value
) 

function CompareTo [2/3]

inline int Lidgren::Network::NetBigInteger::CompareTo (
    object obj
) 

function CompareTo [3/3]

inline int Lidgren::Network::NetBigInteger::CompareTo (
    NetBigInteger value
) 

function Divide [2/2]

inline NetBigInteger Lidgren::Network::NetBigInteger::Divide (
    NetBigInteger val
) 

function DivideAndRemainder

inline NetBigInteger[] Lidgren::Network::NetBigInteger::DivideAndRemainder (
    NetBigInteger val
) 

function Equals

inline override bool Lidgren::Network::NetBigInteger::Equals (
    object obj
) 

function Gcd

inline NetBigInteger Lidgren::Network::NetBigInteger::Gcd (
    NetBigInteger value
) 

function GetHashCode

inline override int Lidgren::Network::NetBigInteger::GetHashCode () 

function GetLowestSetBit

inline int Lidgren::Network::NetBigInteger::GetLowestSetBit () 

function Max

inline NetBigInteger Lidgren::Network::NetBigInteger::Max (
    NetBigInteger value
) 

function Min

inline NetBigInteger Lidgren::Network::NetBigInteger::Min (
    NetBigInteger value
) 

function Mod

inline NetBigInteger Lidgren::Network::NetBigInteger::Mod (
    NetBigInteger m
) 

function ModInverse

inline NetBigInteger Lidgren::Network::NetBigInteger::ModInverse (
    NetBigInteger m
) 

function ModPow

inline NetBigInteger Lidgren::Network::NetBigInteger::ModPow (
    NetBigInteger exponent,
    NetBigInteger m
) 

function Modulus

inline NetBigInteger Lidgren::Network::NetBigInteger::Modulus (
    NetBigInteger val
) 

function Multiply [2/2]

inline NetBigInteger Lidgren::Network::NetBigInteger::Multiply (
    NetBigInteger val
) 

function Negate

inline NetBigInteger Lidgren::Network::NetBigInteger::Negate () 

function NetBigInteger [3/8]

inline Lidgren::Network::NetBigInteger::NetBigInteger (
    string value
) 

function NetBigInteger [4/8]

inline Lidgren::Network::NetBigInteger::NetBigInteger (
    string str,
    int radix
) 

function NetBigInteger [5/8]

inline Lidgren::Network::NetBigInteger::NetBigInteger (
    byte[] bytes
) 

function NetBigInteger [6/8]

inline Lidgren::Network::NetBigInteger::NetBigInteger (
    byte[] bytes,
    int offset,
    int length
) 

function NetBigInteger [7/8]

inline Lidgren::Network::NetBigInteger::NetBigInteger (
    int sign,
    byte[] bytes
) 

function NetBigInteger [8/8]

inline Lidgren::Network::NetBigInteger::NetBigInteger (
    int sign,
    byte[] bytes,
    int offset,
    int length
) 

function Not

inline NetBigInteger Lidgren::Network::NetBigInteger::Not () 

function Pow

inline NetBigInteger Lidgren::Network::NetBigInteger::Pow (
    int exp
) 

function Remainder [3/3]

inline NetBigInteger Lidgren::Network::NetBigInteger::Remainder (
    NetBigInteger n
) 

function ShiftLeft [2/2]

inline NetBigInteger Lidgren::Network::NetBigInteger::ShiftLeft (
    int n
) 

function ShiftRight

inline NetBigInteger Lidgren::Network::NetBigInteger::ShiftRight (
    int n
) 

function Subtract [2/2]

inline NetBigInteger Lidgren::Network::NetBigInteger::Subtract (
    NetBigInteger n
) 

function TestBit

inline bool Lidgren::Network::NetBigInteger::TestBit (
    int n
) 

function ToByteArray [2/2]

inline byte[] Lidgren::Network::NetBigInteger::ToByteArray () 

function ToByteArrayUnsigned

inline byte[] Lidgren::Network::NetBigInteger::ToByteArrayUnsigned () 

function ToString [1/2]

inline override string Lidgren::Network::NetBigInteger::ToString () 

function ToString [2/2]

inline string Lidgren::Network::NetBigInteger::ToString (
    int radix
) 

Public Static Functions Documentation

function ValueOf

static inline NetBigInteger Lidgren::Network::NetBigInteger::ValueOf (
    long value
) 

The documentation for this class was generated from the following file api/unity-plugin/Scripts/Networking/Lidgren.Network/NetBigInteger.cs