public void writeLong(long v) {
    if (ignoreWrites) {
      return;
    }
    checkIfWritable();
    ensureCapacity(8);
    buffer.putLong(v);
  }
Writes a <code>long</code> value, which is comprised of eight bytes, to the output stream. The
byte values to be written, in the order shown, are:
<p>

<pre>
<code>
(byte)(0xff &amp; (v &gt;&gt; 56))
(byte)(0xff &amp; (v &gt;&gt; 48))
(byte)(0xff &amp; (v &gt;&gt; 40))
(byte)(0xff &amp; (v &gt;&gt; 32))
(byte)(0xff &amp; (v &gt;&gt; 24))
(byte)(0xff &amp; (v &gt;&gt; 16))
(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>readLong</code> method of interface
<code>DataInput</code> , which will then return a <code>long</code> equal to <code>v</code>.

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