code: public short getShort(int index)
      {
          checkPositionIndexes(index, index + SIZE_OF_SHORT, this.length);
          index += offset;
          return (short) (data[index] & 0xFF | data[index + 1] << 8);
      }
docs: Gets a 16-bit short integer at the specified absolute {@code index} in
  this slice.
  
  @throws IndexOutOfBoundsException if the specified {@code index} is less than {@code 0} or
  {@code index + 2} is greater than {@code this.capacity}