code: public void setShort(int index, int value)
      {
          checkPositionIndexes(index, index + SIZE_OF_SHORT, this.length);
          index += offset;
          data[index] = (byte) (value);
          data[index + 1] = (byte) (value >>> 8);
      }
docs: Sets the specified 16-bit short integer at the specified absolute
  {@code index} in this buffer.  The 16 high-order bits of the specified
  value are ignored.
  
  @throws IndexOutOfBoundsException if the specified {@code index} is less than {@code 0} or
  {@code index + 2} is greater than {@code this.capacity}