# CSJ2K.j2k.entropy.decoder.ByteToBitInput.checkBytePadding

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_decoder_ByteToBitInput_checkBytePadding_" data-uid="CSJ2K.j2k.entropy.decoder.ByteToBitInput.checkBytePadding*">checkBytePadding Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_decoder_ByteToBitInput_checkBytePadding_" data-uid="CSJ2K.j2k.entropy.decoder.ByteToBitInput.checkBytePadding*"></a>
<h4 id="CSJ2K_j2k_entropy_decoder_ByteToBitInput_checkBytePadding" data-uid="CSJ2K.j2k.entropy.decoder.ByteToBitInput.checkBytePadding">checkBytePadding()</h4>
<div class="markdown level1 summary"><p>Checks for past errors in the decoding process by verifying the byte
padding with an alternating sequence of 0's and 1's. If an error is
detected it means that the raw bit stream has been wrongly decoded or
that the raw terminated segment length is too long. If no errors are
detected it does not necessarily mean that the raw bit stream has been
correctly decoded.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual bool checkBytePadding()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function checkBytePadding() As Boolean</code></pre>
</div>
<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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if errors are found, false otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
