@Override
      int toInt(byte[] bytes, int offset, int length) {
        int n = 0;
        for (int i = offset; i < (offset + length); i++) {
          n <<= 8;
          n ^= bytes[i] & 0xFF;
        }
        return n;
      }
Returns the Unsafe-using Converter, or falls back to the pure-Java implementation if unable
to do so.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java