C# Class OctoTorrent.Dht.BigInteger

ファイルを表示 Open project: Eskat0n/OctoTorrent Class Usage Examples

Public Methods

Method Description
BigInteger ( ) : System
BigInteger ( BigInteger bi ) : System
BigInteger ( BigInteger bi, uint len ) : System
BigInteger ( Sign sign, uint len ) : System
BigInteger ( byte inData ) : System
BigInteger ( uint ui ) : System
BitCount ( ) : int
Compare ( BigInteger bi ) : Sign
Equals ( object o ) : bool
GetBytes ( ) : byte[]
GetHashCode ( ) : int
ModPow ( BigInteger exp, BigInteger n ) : BigInteger
SetBit ( uint bitNum, bool value ) : void
TestBit ( int bitNum ) : bool
ToString ( ) : string
ToString ( uint radix ) : string
ToString ( uint radix, string characterSet ) : string
operator ( ) : BigInteger
operator ( ) : bool
operator ( ) : int
operator ( ) : uint

Private Methods

Method Description
Normalize ( ) : void

Normalizes this by setting the length to the actual number of uints used in data and by setting the sign to Sign.Zero if the value of this is 0.

Pow ( BigInteger value, uint p ) : BigInteger
Xor ( BigInteger other ) : BigInteger

Method Details

BigInteger() public method

public BigInteger ( ) : System
return System

BigInteger() public method

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

BigInteger() public method

public BigInteger ( BigInteger bi, uint len ) : System
bi BigInteger
len uint
return System

BigInteger() public method

public BigInteger ( Sign sign, uint len ) : System
sign Sign
len uint
return System

BigInteger() public method

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

BigInteger() public method

public BigInteger ( uint ui ) : System
ui uint
return System

BitCount() public method

public BitCount ( ) : int
return int

Compare() public method

public Compare ( BigInteger bi ) : Sign
bi BigInteger
return Sign

Equals() public method

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

GetBytes() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

ModPow() public method

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

SetBit() public method

public SetBit ( uint bitNum, bool value ) : void
bitNum uint
value bool
return void

TestBit() public method

public TestBit ( int bitNum ) : bool
bitNum int
return bool

ToString() public method

public ToString ( ) : string
return string

ToString() public method

public ToString ( uint radix ) : string
radix uint
return string

ToString() public method

public ToString ( uint radix, string characterSet ) : string
radix uint
characterSet string
return string

operator() public static method

public static operator ( ) : BigInteger
return BigInteger

operator() public static method

public static operator ( ) : bool
return bool

operator() public static method

public static operator ( ) : int
return int

operator() public static method

public static operator ( ) : uint
return uint