# org.jpedal.jbig2.decoders.ArithmeticDecoder.decodeBit

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="org_jpedal_jbig2_decoders_ArithmeticDecoder_decodeBit_" data-uid="org.jpedal.jbig2.decoders.ArithmeticDecoder.decodeBit*">decodeBit Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="org_jpedal_jbig2_decoders_ArithmeticDecoder_decodeBit_" data-uid="org.jpedal.jbig2.decoders.ArithmeticDecoder.decodeBit*"></a>
<h4 id="org_jpedal_jbig2_decoders_ArithmeticDecoder_decodeBit_System_Int64_org_jpedal_jbig2_decoders_ArithmeticDecoderStats_" data-uid="org.jpedal.jbig2.decoders.ArithmeticDecoder.decodeBit(System.Int64,org.jpedal.jbig2.decoders.ArithmeticDecoderStats)">decodeBit(long, ArithmeticDecoderStats)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual int decodeBit(long context, ArithmeticDecoderStats stats)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function decodeBit(context As Long, stats As ArithmeticDecoderStats) As Integer</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.int64">long</a></td>
      <td><span class="parametername">context</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="org.jpedal.jbig2.decoders.ArithmeticDecoderStats.html">ArithmeticDecoderStats</a></td>
      <td><span class="parametername">stats</span></td>
      <td></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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
