@Override
  public int getInt() {
    checkRefCount();
    int remaining = this.curItem.remaining();
    if (remaining >= Bytes.SIZEOF_INT) {
      return this.curItem.getInt();
    }
    int n = 0;
    for (int i = 0; i < Bytes.SIZEOF_INT; i++) {
      n <<= 8;
      n ^= get() & 0xFF;
    }
    return n;
  }
Returns the int value at the current position. Also advances the position by the size of int
@return the int value at the current position
hbase-common/src/main/java/org/apache/hadoop/hbase/nio/MultiByteBuff.java