# CSJ2K.j2k.entropy.decoder.ByteInputBuffer.readChecked

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer_readChecked_" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.readChecked*">readChecked Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer_readChecked_" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.readChecked*"></a>
<h4 id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer_readChecked" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.readChecked">readChecked()</h4>
<div class="markdown level1 summary"><p>Reads the next byte of data from this input stream. The value byte is
returned as an int in the range 0 to 255. If no byte is available
because the end of the stream has been reached, the EOFException
exception is thrown.</p>
<pre><code>       &lt;p&gt;This method is not synchronized, so it is not thread safe.&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 readChecked()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function readChecked() As Integer</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.int32">int</a></td>
      <td><p>The byte read in the range 0-255.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
