# CSJ2K.j2k.util.ISRandomAccessIO.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_util_ISRandomAccessIO__ctor_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.#ctor*">ISRandomAccessIO Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_util_ISRandomAccessIO__ctor_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.#ctor*"></a>
<h4 id="CSJ2K_j2k_util_ISRandomAccessIO__ctor_System_IO_Stream_System_Int32_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.#ctor(System.IO.Stream,System.Int32,System.Int32,System.Int32)">ISRandomAccessIO(Stream, int, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a new RandomAccessIO wrapper for the given InputStream
'is'. The internal cache buffer will have size 'size' and will
increment by 'inc' each time it is needed. The maximum buffer size is
limited to 'maxsize'.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ISRandomAccessIO(Stream is_Renamed, int size, int inc, int maxsize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(is_Renamed As Stream, size As Integer, inc As Integer, maxsize 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.io.stream">Stream</a></td>
      <td><span class="parametername">is_Renamed</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The initial size for the cache buffer, in bytes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">inc</span></td>
      <td><p>The size increment for the cache buffer, in bytes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">maxsize</span></td>
      <td><p>The maximum size for the cache buffer, in bytes.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="CSJ2K_j2k_util_ISRandomAccessIO__ctor_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.#ctor*"></a>
<h4 id="CSJ2K_j2k_util_ISRandomAccessIO__ctor_System_IO_Stream_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.#ctor(System.IO.Stream)">ISRandomAccessIO(Stream)</h4>
<div class="markdown level1 summary"><p>Creates a new RandomAccessIO wrapper for the given InputStream
'is'. The internal cache buffer size and increment is to to 256 kB. The
maximum buffer size is set to Integer.MAX_VALUE (2 GB).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ISRandomAccessIO(Stream is_Renamed)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(is_Renamed As Stream)</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.io.stream">Stream</a></td>
      <td><span class="parametername">is_Renamed</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
