# CSJ2K.j2k.util.ISRandomAccessIO.readFully

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_util_ISRandomAccessIO_readFully_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.readFully*">readFully Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_util_ISRandomAccessIO_readFully_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.readFully*"></a>
<h4 id="CSJ2K_j2k_util_ISRandomAccessIO_readFully_System_Byte___System_Int32_System_Int32_" data-uid="CSJ2K.j2k.util.ISRandomAccessIO.readFully(System.Byte[],System.Int32,System.Int32)">readFully(byte[], int, int)</h4>
<div class="markdown level1 summary"><p>Reads 'len' bytes of data from this file into an array of bytes. This
method reads repeatedly from the stream until all the bytes are
read. This method blocks until all the bytes are read, the end of the
stream is detected, or an exception is thrown.</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 readFully(byte[] b, int off, int n)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub readFully(b As Byte(), off As Integer, n 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">b</span></td>
      <td><p>The buffer into which the data is to be read. It must be long
enough.</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 'b' where to place the first byte 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">n</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.io.RandomAccessIO.readFully.html#CSJ2K_j2k_io_RandomAccessIO_readFully_System_Byte___System_Int32_System_Int32_">RandomAccessIO.readFully(byte[], int, int)</a></div>
</div>
