private void decode(long val, int radix) {
    Arrays.fill(value, (byte) 0);
    for (int i = value.length - 1; val != 0; i--) {
      long q = unsignedLongDiv(val, radix);
      value[i] = (byte) (val - q * radix);
      val = q;
    }
  }
Decode val into value[].

@param val
         is treated as an unsigned 64-bit integer
@param radix
         must be between MIN_RADIX and MAX_RADIX
ql/src/java/org/apache/hadoop/hive/ql/udf/UDFConv.java