# CSJ2K.j2k.util.ISRandomAccessIO.seek

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_util_ISRandomAccessIO_seek_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.seek*">seek Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_util_ISRandomAccessIO_seek_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.seek*"></a>
<h4 id="CSJ2K_j2k_util_ISRandomAccessIO_seek_System_Int32_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.seek(System.Int32)">seek(int)</h4>
<div class="markdown level1 summary"><p>Moves the current position for the next read operation to offset. The
offset is measured from the beginning of the stream. If the offset is
set beyond the currently cached data, the missing data will be read
only when a read operation is performed. Setting the offset beyond the
end of the data will cause an EOFException only if the data length is
currently known, otherwise an IOException will occur when a read
operation is attempted at that position.</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 seek(int off)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub seek(off 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.int32">int</a></td>
      <td><span class="parametername">off</span></td>
      <td><p>The offset where to move to.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.io.RandomAccessIO.seek.html#CSJ2K_j2k_io_RandomAccessIO_seek_System_Int32_">RandomAccessIO.seek(int)</a></div>
</div>
