public static int toInt(byte[] bytes) {
    return toInt(bytes, 0, SIZEOF_INT);
  }
Converts a byte array to an int value
@param bytes byte array
@return the int value
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java