C# Класс BooRunner.Tools.DigitConverter

Converts BigInteger digits to/from byte array.
Показать файл Открыть проект

Открытые методы

Метод Описание
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[]