# CSJ2K.j2k.entropy.encoder.MQCoder.NumCodedBytes

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_encoder_MQCoder_NumCodedBytes_" data-uid="CSJ2K.j2k.entropy.encoder.MQCoder.NumCodedBytes*">NumCodedBytes Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_encoder_MQCoder_NumCodedBytes_" data-uid="CSJ2K.j2k.entropy.encoder.MQCoder.NumCodedBytes*"></a>
<h4 id="CSJ2K_j2k_entropy_encoder_MQCoder_NumCodedBytes" data-uid="CSJ2K.j2k.entropy.encoder.MQCoder.NumCodedBytes">NumCodedBytes</h4>
<div class="markdown level1 summary"><p>Returns the number of bytes that are necessary from the compressed
output stream to decode all the symbols that have been coded this
far. The number of returned bytes does not include anything coded
previous to the last time the 'terminate()' or 'reset()' methods where
called.</p>
<pre><code>       &lt;p&gt;The values returned by this method are then to be used in finishing
       the length calculation with the 'finishLengthCalculation()' method,
       after compensation of the offset in the number of bytes due to previous
       terminated segments.&lt;/p&gt;&lt;p&gt;This method should not be called if the current coding pass is to be
       terminated. The 'terminate()' method should be called instead.&lt;/p&gt;&lt;p&gt;The calculation is done based on the type of length calculation
       specified at the constructor.&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 virtual int NumCodedBytes { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable ReadOnly Property NumCodedBytes As Integer</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>The number of bytes in the compressed output stream necessary
to decode all the information coded this far.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
