# CSJ2K.j2k.entropy.decoder.ByteInputBuffer.addByteArray

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer_addByteArray_" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.addByteArray*">addByteArray Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer_addByteArray_" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.addByteArray*"></a>
<h4 id="CSJ2K_j2k_entropy_decoder_ByteInputBuffer_addByteArray_System_Byte___System_Int32_System_Int32_" data-uid="CSJ2K.j2k.entropy.decoder.ByteInputBuffer.addByteArray(System.Byte[],System.Int32,System.Int32)">addByteArray(byte[], int, int)</h4>
<div class="markdown level1 summary"><p>Adds the specified data to the end of the byte array stream. This
method modifies the byte array buffer. It can also discard the already
read input.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void addByteArray(byte[] data, int off, int len)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub addByteArray(data As Byte(), off As Integer, len 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">data</span></td>
      <td><p>The data to add. The data is copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">off</span></td>
      <td><p>The index, in data, of the first element to add to the
stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">len</span></td>
      <td><p>The number of elements to add to the array.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
