public void writeShort(int v) {
    if (ignoreWrites) {
      return;
    }
    checkIfWritable();
    ensureCapacity(2);
    buffer.putShort((short) (v & 0xffff));
  }
Writes two bytes to the output stream to represent the value of the argument. The byte values
to be written, in the order shown, are:
<p>

<pre>
<code>
(byte)(0xff &amp; (v &gt;&gt; 8))
(byte)(0xff &amp; v)
</code>
</pre>
<p>
The bytes written by this method may be read by the <code>readShort</code> method of interface
<code>DataInput</code> , which will then return a <code>short</code> equal to
<code>(short)v</code>.

@param v the <code>short</code> value to be written.
geode-serialization/src/main/java/org/apache/geode/internal/serialization/BufferDataOutputStream.java