C# Class CSharpRTMP.Common.BigInteger

Datei anzeigen Open project: langhuihui/csharprtmp Class Usage Examples

Public Properties

Property Type Description
Data uint[]
Length int
Pool ConcurrentBag

Public Methods

Method Description
BigInteger ( BigInteger bi ) : System
BigInteger ( byte inData ) : System
BigInteger ( long value ) : System
BigInteger ( ulong value ) : System
Clear ( ) : void
Divide ( BigInteger bi2 ) : void
DivideMultiByte ( BigInteger bi2 ) : void
DivideSingleByte ( BigInteger bi2 ) : void
Equals ( object o ) : bool
GetBytes ( int keySize ) : byte[]
GetHashCode ( ) : int
GetRemainderMultiByte ( BigInteger bi2 ) : BigInteger
GetRemainderSingleByte ( BigInteger bi2 ) : BigInteger
ModPow ( BigInteger exp, BigInteger n ) : BigInteger
Multiply ( BigInteger bi1, BigInteger bi2, BigInteger &result ) : void
Multiply ( BigInteger bi1, ulong bi2, BigInteger &result ) : void
Negative ( ) : void
Recycle ( ) : void
Subtract ( BigInteger bi2 ) : void
bitCount ( ) : int
operator ( ) : BigInteger
operator ( ) : bool
this ( int pos ) : uint

Private Methods

Method Description
BarrettReduction ( BigInteger &x1, BigInteger x2, BigInteger n, BigInteger constant, BigInteger &temp ) : void
shiftLeft ( uint buffer, int shiftVal ) : int
shiftRight ( uint buffer, int shiftVal ) : int

Method Details

BigInteger() public method

public BigInteger ( BigInteger bi ) : System
bi BigInteger
return System

BigInteger() public method

public BigInteger ( byte inData ) : System
inData byte
return System

BigInteger() public method

public BigInteger ( long value ) : System
value long
return System

BigInteger() public method

public BigInteger ( ulong value ) : System
value ulong
return System

Clear() public method

public Clear ( ) : void
return void

Divide() public method

public Divide ( BigInteger bi2 ) : void
bi2 BigInteger
return void

DivideMultiByte() public method

public DivideMultiByte ( BigInteger bi2 ) : void
bi2 BigInteger
return void

DivideSingleByte() public method

public DivideSingleByte ( BigInteger bi2 ) : void
bi2 BigInteger
return void

Equals() public method

public Equals ( object o ) : bool
o object
return bool

GetBytes() public method

public GetBytes ( int keySize ) : byte[]
keySize int
return byte[]

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetRemainderMultiByte() public method

public GetRemainderMultiByte ( BigInteger bi2 ) : BigInteger
bi2 BigInteger
return BigInteger

GetRemainderSingleByte() public method

public GetRemainderSingleByte ( BigInteger bi2 ) : BigInteger
bi2 BigInteger
return BigInteger

ModPow() public method

public ModPow ( BigInteger exp, BigInteger n ) : BigInteger
exp BigInteger
n BigInteger
return BigInteger

Multiply() public static method

public static Multiply ( BigInteger bi1, BigInteger bi2, BigInteger &result ) : void
bi1 BigInteger
bi2 BigInteger
result BigInteger
return void

Multiply() public static method

public static Multiply ( BigInteger bi1, ulong bi2, BigInteger &result ) : void
bi1 BigInteger
bi2 ulong
result BigInteger
return void

Negative() public method

public Negative ( ) : void
return void

Recycle() public method

public Recycle ( ) : void
return void

Subtract() public method

public Subtract ( BigInteger bi2 ) : void
bi2 BigInteger
return void

bitCount() public method

public bitCount ( ) : int
return int

operator() public static method

public static operator ( ) : BigInteger
return BigInteger

operator() public static method

public static operator ( ) : bool
return bool

this() public method

public this ( int pos ) : uint
pos int
return uint

Property Details

Data public_oe property

public uint[] Data
return uint[]

Length public_oe property

public int Length
return int

Pool public_oe static_oe property

public static ConcurrentBag Pool
return ConcurrentBag