# CSJ2K.j2k.codestream.reader.PktDecoder.restart

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_reader_PktDecoder_restart_" data-uid="CSJ2K.j2k.codestream.reader.PktDecoder.restart*">restart Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_reader_PktDecoder_restart_" data-uid="CSJ2K.j2k.codestream.reader.PktDecoder.restart*"></a>
<h4 id="CSJ2K_j2k_codestream_reader_PktDecoder_restart_System_Int32_System_Int32___System_Int32_CSJ2K_j2k_codestream_reader_CBlkInfo___________System_Boolean_System_IO_MemoryStream_" data-uid="CSJ2K.j2k.codestream.reader.PktDecoder.restart(System.Int32,System.Int32[],System.Int32,CSJ2K.j2k.codestream.reader.CBlkInfo[][][][][],System.Boolean,System.IO.MemoryStream)">restart(int, int[], int, CBlkInfo[][][][][], bool, MemoryStream)</h4>
<div class="markdown level1 summary"><p>Re-initialize the PktDecoder instance at the beginning of a new tile.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual CBlkInfo[][][][][] restart(int nc, int[] mdl, int nl, CBlkInfo[][][][][] cbI, bool pph, MemoryStream pphbais)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function restart(nc As Integer, mdl As Integer(), nl As Integer, cbI As CBlkInfo()()()()(), pph As Boolean, pphbais As MemoryStream) As CBlkInfo()()()()()</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">nc</span></td>
      <td><p>The number of components in this tile</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">mdl</span></td>
      <td><p>The maximum number of decomposition level in each component
of this tile</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">nl</span></td>
      <td><p>The number of layers in  this tile</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.html">CBlkInfo</a>[][][][][]</td>
      <td><span class="parametername">cbI</span></td>
      <td><p>The code-blocks array</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">pph</span></td>
      <td><p>Flag indicating whether packed packet headers was used</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.memorystream">MemoryStream</a></td>
      <td><span class="parametername">pphbais</span></td>
      <td><p>Stream containing the packed packet headers</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.html">CBlkInfo</a>[][][][][]</td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
