public static int toInt(ByteBuffer buffer) {
    return ConverterHolder.BEST_CONVERTER.toInt(buffer);
  }
Reads an int value at the given buffer's current position. Also advances the buffer's position
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ByteBufferUtils.java