C# 클래스 System.Net.BigIntegerExtensions

Extension methods to convert System.Numerics.BigInteger instances to hexadecimal, octal, and binary strings.
파일 보기 프로젝트 열기: TrakHound/TrakHound-Community

공개 메소드들

메소드 설명
PositiveReverse ( this input, int width ) : System.Numerics.BigInteger

Reverse a Positive BigInteger ONLY Bitwise ~ operator Input : FF FF FF FF Width : 4 Result : 00 00 00 00 Input : 00 00 00 00 Width : 4 Result : FF FF FF FF Input : FF FF FF FF Width : 8 Result : FF FF FF FF 00 00 00 00 Input : 00 00 00 00 Width : 8 Result : FF FF FF FF FF FF FF FF

ToBinaryString ( this bigint ) : string

Converts a BigInteger to a binary string.

ToHexadecimalString ( this bigint ) : string

Converts a BigInteger to a hexadecimal string.

ToOctalString ( this bigint ) : string

Converts a BigInteger to a octal string.

메소드 상세

PositiveReverse() 공개 정적인 메소드

Reverse a Positive BigInteger ONLY Bitwise ~ operator Input : FF FF FF FF Width : 4 Result : 00 00 00 00 Input : 00 00 00 00 Width : 4 Result : FF FF FF FF Input : FF FF FF FF Width : 8 Result : FF FF FF FF 00 00 00 00 Input : 00 00 00 00 Width : 8 Result : FF FF FF FF FF FF FF FF
public static PositiveReverse ( this input, int width ) : System.Numerics.BigInteger
input this
width int
리턴 System.Numerics.BigInteger

ToBinaryString() 공개 정적인 메소드

Converts a BigInteger to a binary string.
public static ToBinaryString ( this bigint ) : string
bigint this A .
리턴 string

ToHexadecimalString() 공개 정적인 메소드

Converts a BigInteger to a hexadecimal string.
public static ToHexadecimalString ( this bigint ) : string
bigint this A .
리턴 string

ToOctalString() 공개 정적인 메소드

Converts a BigInteger to a octal string.
public static ToOctalString ( this bigint ) : string
bigint this A .
리턴 string