BooRunner.Tools.DigitConverter.FromBytes C# (CSharp) Méthode

FromBytes() public static méthode

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.
Résultat uint[]
        public static uint[] FromBytes(byte[] bytes)
        {
            if (bytes == null)
            {
                throw new ArgumentNullException("bytes");
            }
            if (bytes.Length % 4 != 0)
            {
                throw new ArgumentException(Strings.DigitBytesLengthInvalid, "bytes");
            }

            uint[] digits = new uint[bytes.Length / 4];
            Buffer.BlockCopy(bytes, 0, digits, 0, bytes.Length);
            return digits;
        }
DigitConverter