# CSJ2K.j2k.entropy.decoder.ByteInputBuffer.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer__ctor_" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.#ctor*">ByteInputBuffer Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer__ctor_" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.#ctor*"></a>
<h4 id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer__ctor_System_Byte___" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.#ctor(System.Byte[])">ByteInputBuffer(byte[])</h4>
<div class="markdown level1 summary"><p>Creates a new byte array input stream that reads data from the
specified byte array. The byte array is not copied.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ByteInputBuffer(byte[] buf)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(buf As Byte())</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.byte">byte</a>[]</td>
      <td><span class="parametername">buf</span></td>
      <td><p>the input buffer.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer__ctor_" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.#ctor*"></a>
<h4 id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer__ctor_System_Byte___System_Int32_System_Int32_" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.#ctor(System.Byte[],System.Int32,System.Int32)">ByteInputBuffer(byte[], int, int)</h4>
<div class="markdown level1 summary"><p>Creates a new byte array input stream that reads data from the
specified byte array. Up to length characters are to be read from the
byte array, starting at the indicated offset.</p>
<pre><code>       &lt;p&gt;The byte array is not copied.&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 ByteInputBuffer(byte[] buf, int offset, int length)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(buf As Byte(), offset As Integer, length 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.byte">byte</a>[]</td>
      <td><span class="parametername">buf</span></td>
      <td><p>the input buffer.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">offset</span></td>
      <td><p>the offset in the buffer of the first byte to read.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">length</span></td>
      <td><p>the maximum number of bytes to read from the buffer.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
