Example #1
0
        public BigIntsBase(IBigInts.BigIntsBaseConstraints Arg)
        {
            for (int i = 0; i < Arg.Length; i++)
            {
                if (Arg.Data[Arg.Length - i - 1] == true)
                {
                    if (Arg.Length - i > Length)
                    {
                        throw new InvalidCastException("The number provided can not be represented by the current type");
                    }
                    else
                    {
                        Data = new BitArray(Length, false);
                        for (int x = 0; x < Arg.Length - i; x++)
                        {
                            Data[x] = Arg.Data[x];
                        }
                    }

                    return;
                }
            }
        }
Example #2
0
 public Uint8192(IBigInts.BigIntsBaseConstraints Arg) : base(Arg)
 {
 }
Example #3
0
 public Uint4096(IBigInts.BigIntsBaseConstraints Arg) : base(Arg)
 {
 }
Example #4
0
 public Uint1024(IBigInts.BigIntsBaseConstraints Arg) : base(Arg)
 {
 }
Example #5
0
 public Uint2048(IBigInts.BigIntsBaseConstraints Arg) : base(Arg)
 {
 }