C# 클래스 BooRunner.Tools.DigitConverter

Converts BigInteger digits to/from byte array.
파일 보기 프로젝트 열기: juanplopes/euler

공개 메소드들

메소드 설명
FromBytes ( byte bytes ) : uint[]

Converts bytes to big integer digits.

Big integer can be created from digits using BigInteger(uint[], bool) constructor.

ToBytes ( uint digits ) : byte[]

Converts big integer digits to bytes.

Digits can be obtained using BigInteger.GetInternalState method.

메소드 상세

FromBytes() 공개 정적인 메소드

Converts bytes to big integer digits.
Big integer can be created from digits using BigInteger(uint[], bool) constructor.
public static FromBytes ( byte bytes ) : uint[]
bytes byte Bytes.
리턴 uint[]

ToBytes() 공개 정적인 메소드

Converts big integer digits to bytes.
Digits can be obtained using BigInteger.GetInternalState method.
public static ToBytes ( uint digits ) : byte[]
digits uint digits.
리턴 byte[]