public static long toLong(byte[] bytes) {
    return toLong(bytes, 0, SIZEOF_LONG);
  }
Converts a byte array to a long value. Reverses {@link #toBytes(long)}
@param bytes array
@return the long value
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java