# CSJ2K.j2k.entropy.encoder.StdEntropyCoder.getNextCodeBlock

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_encoder_StdEntropyCoder_getNextCodeBlock_" data-uid="CSJ2K.j2k.entropy.encoder.StdEntropyCoder.getNextCodeBlock*">getNextCodeBlock Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_encoder_StdEntropyCoder_getNextCodeBlock_" data-uid="CSJ2K.j2k.entropy.encoder.StdEntropyCoder.getNextCodeBlock*"></a>
<h4 id="CSJ2K_j2k_entropy_encoder_StdEntropyCoder_getNextCodeBlock_System_Int32_CSJ2K_j2k_entropy_encoder_CBlkRateDistStats_" data-uid="CSJ2K.j2k.entropy.encoder.StdEntropyCoder.getNextCodeBlock(System.Int32,CSJ2K.j2k.entropy.encoder.CBlkRateDistStats)">getNextCodeBlock(int, CBlkRateDistStats)</h4>
<div class="markdown level1 summary"><p>Returns the next coded code-block in the current tile for the specified
component, as a copy (see below). The order in which code-blocks are
returned is not specified. However each code-block is returned only
once and all code-blocks will be returned if the method is called 'N'
times, where 'N' is the number of code-blocks in the tile. After all
the code-blocks have been returned for the current tile calls to this
method will return 'null'.</p>
<pre><code>       &lt;p&gt;When changing the current tile (through 'setTile()' or 'nextTile()')
       this method will always return the first code-block, as if this method
       was never called before for the new current tile.&lt;/p&gt;&lt;p&gt;The data returned by this method is always a copy of the internal
       data of this object, if any, and it can be modified &quot;in place&quot; without
       any problems after being returned.&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 CBlkRateDistStats getNextCodeBlock(int c, CBlkRateDistStats ccb)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function getNextCodeBlock(c As Integer, ccb As CBlkRateDistStats) As CBlkRateDistStats</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">c</span></td>
      <td><p>The component for which to return the next code-block.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.entropy.encoder.CBlkRateDistStats.html">CBlkRateDistStats</a></td>
      <td><span class="parametername">ccb</span></td>
      <td><p>If non-null this object might be used in returning the coded
code-block in this or any subsequent call to this method. If null a new
one is created and returned. If the 'data' array of 'cbb' is not null
it may be reused to return the compressed data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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="CSJ2K.j2k.entropy.encoder.CBlkRateDistStats.html">CBlkRateDistStats</a></td>
      <td><p>The next coded code-block in the current tile for component
'n', or null if all code-blocks for the current tile have been
returned.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="CSJ2K.j2k.entropy.encoder.EntropyCoder.getNextCodeBlock.html#CSJ2K_j2k_entropy_encoder_EntropyCoder_getNextCodeBlock_System_Int32_CSJ2K_j2k_entropy_encoder_CBlkRateDistStats_">EntropyCoder.getNextCodeBlock(int, CBlkRateDistStats)</a></div>
<h5 id="CSJ2K_j2k_entropy_encoder_StdEntropyCoder_getNextCodeBlock_System_Int32_CSJ2K_j2k_entropy_encoder_CBlkRateDistStats__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="CSJ2K.j2k.entropy.encoder.CBlkRateDistStats.html">CBlkRateDistStats</a></div>
</div>
</div>
