Code example for BigInteger

Methods: bitLength, toByteArray

0
         this.buf = var2;
      } 
   } 
 
   static byte[] toIntegerBytes(BigInteger var0) {
      int var1 = var0.bitLength() + 7 >> 3 << 3;
      byte[] var2 = var0.toByteArray();
      byte[] var5;
      if(var0.bitLength() % 8 != 0) {
         int var3 = var0.bitLength() / 8 + 1;
         int var4 = var1 / 8;
         if(var3 == var4) {
            var5 = var2;
            return var5;
         } 
      } 
 
      byte var6 = 0;
      int var7 = var2.length;
      if(var0.bitLength() % 8 == 0) {
         var6 = 1;
         var7 += -1;
      } 
 
      int var8 = var1 / 8 - var7;