Esempio n. 1
0
      public Address TransAddressCheck(Address a) {
        BigInteger one = new BigInteger(1);
  	BigInteger s_Bin = one << 80;
	BigInteger addr = a.ToBigInteger();
	BigInteger addr_j = addr % s_Bin;
	BigInteger addr_i = (addr - addr_j) / s_Bin;
	BigInteger q = addr_j * s_Bin + addr_i;
	byte [] target = Address.ConvertToAddressBuffer(q);
	Address.SetClass(target, a.Class);
	Address q_addr = new AHAddress(target);
    	return q_addr;
      }