# CSJ2K.j2k.entropy.encoder.PostCompRateAllocator.runAndWrite

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_encoder_PostCompRateAllocator_runAndWrite_" data-uid="CSJ2K.j2k.entropy.encoder.PostCompRateAllocator.runAndWrite*">runAndWrite Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_encoder_PostCompRateAllocator_runAndWrite_" data-uid="CSJ2K.j2k.entropy.encoder.PostCompRateAllocator.runAndWrite*"></a>
<h4 id="CSJ2K_j2k_entropy_encoder_PostCompRateAllocator_runAndWrite" data-uid="CSJ2K.j2k.entropy.encoder.PostCompRateAllocator.runAndWrite">runAndWrite()</h4>
<div class="markdown level1 summary"><p>Runs the rate allocation algorithm and writes the data to the
bit stream. This must be called after the initialize() method.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public abstract void runAndWrite()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public MustOverride Sub runAndWrite()</code></pre>
</div>
<h5 id="CSJ2K_j2k_entropy_encoder_PostCompRateAllocator_runAndWrite_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="CSJ2K.j2k.entropy.encoder.PostCompRateAllocator.initialize.html#CSJ2K_j2k_entropy_encoder_PostCompRateAllocator_initialize">initialize</a>()</div>
</div>
</div>
