# CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeShort

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeShort_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeShort*">writeShort Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeShort_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeShort*"></a>
<h4 id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeShort_System_Int32_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeShort(System.Int32)">writeShort(int)</h4>
<div class="markdown level1 summary"><p>Writes the short value of <tt>v</tt> (i.e., 16 least significant bits)
to the output. Prior to writing, the output should be realigned at the
byte level.</p>
<pre><code>       &lt;p&gt;Signed or unsigned data can be written. To write a signed value just
       pass the &lt;tt&gt;short&lt;/tt&gt; value as an argument. To write unsigned data
       pass the &lt;tt&gt;int&lt;/tt&gt; value as an argument (it will be automatically
       casted, and only the 16 least significant bits will be written).&lt;/p&gt;
</code></pre>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void writeShort(int v)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub writeShort(v As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The value to write to the output</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="CSJ2K.j2k.io.BufferedRandomAccessFile.writeShort.html#CSJ2K_j2k_io_BufferedRandomAccessFile_writeShort_System_Int32_">BufferedRandomAccessFile.writeShort(int)</a></div>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.io.BinaryDataOutput.writeShort.html#CSJ2K_j2k_io_BinaryDataOutput_writeShort_System_Int32_">BinaryDataOutput.writeShort(int)</a></div>
</div>
