# CSJ2K.j2k.util.ArrayUtil

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_util_ArrayUtil" data-uid="CSJ2K.j2k.util.ArrayUtil" class="text-break">ArrayUtil Class
</h1>
  <div class="markdown level0 summary"><p>This class contains a colleaction of utility static methods for arrays.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ArrayUtil</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.util.html">CSJ2K.j2k.util</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_util_ArrayUtil_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ArrayUtil</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ArrayUtil</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_ArrayUtil__ctor" data-uid="CSJ2K.j2k.util.ArrayUtil.#ctor">
          <a class="xref" href="CSJ2K.j2k.util.ArrayUtil.-ctor.html#CSJ2K_j2k_util_ArrayUtil__ctor">ArrayUtil()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_ArrayUtil_INIT_EL_COPYING" data-uid="CSJ2K.j2k.util.ArrayUtil.INIT_EL_COPYING">
          <a class="xref" href="CSJ2K.j2k.util.ArrayUtil.INIT_EL_COPYING.html">INIT_EL_COPYING</a>
        </td>
        <td class="markdown level1 summary"><p>The number of elements to copy initially in an optimized array copy</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_util_ArrayUtil_MAX_EL_COPYING" data-uid="CSJ2K.j2k.util.ArrayUtil.MAX_EL_COPYING">
          <a class="xref" href="CSJ2K.j2k.util.ArrayUtil.MAX_EL_COPYING.html">MAX_EL_COPYING</a>
        </td>
        <td class="markdown level1 summary"><p>The maximum array size to do element by element copying, larger
arrays are copyied in a n optimized way.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_ArrayUtil_byteArraySet_System_Byte___System_Byte_" data-uid="CSJ2K.j2k.util.ArrayUtil.byteArraySet(System.Byte[],System.Byte)">
          <a class="xref" href="CSJ2K.j2k.util.ArrayUtil.byteArraySet.html#CSJ2K_j2k_util_ArrayUtil_byteArraySet_System_Byte___System_Byte_">byteArraySet(byte[], byte)</a>
        </td>
        <td class="markdown level1 summary"><p>Reinitializes a byte array to the given value in an optimized way. If
the length of the array is less than MAX_EL_COPYING, then the array
is set element by element in the normal way, otherwise the first
INIT_EL_COPYING elements are set element by element and then
System.arraycopy is used to set the other parts of the array.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_util_ArrayUtil_intArraySet_System_Int32___System_Int32_" data-uid="CSJ2K.j2k.util.ArrayUtil.intArraySet(System.Int32[],System.Int32)">
          <a class="xref" href="CSJ2K.j2k.util.ArrayUtil.intArraySet.html#CSJ2K_j2k_util_ArrayUtil_intArraySet_System_Int32___System_Int32_">intArraySet(int[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Reinitializes an int array to the given value in an optimized way. If
the length of the array is less than MAX_EL_COPYING, then the array
is set element by element in the normal way, otherwise the first
INIT_EL_COPYING elements are set element by element and then
System.arraycopy is used to set the other parts of the array.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
