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