# CSJ2K.j2k.codestream.reader.HeaderDecoder.extractTilePartMarkSeg

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_reader_HeaderDecoder_extractTilePartMarkSeg_" data-uid="CSJ2K.j2k.codestream.reader.HeaderDecoder.extractTilePartMarkSeg*">extractTilePartMarkSeg Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_reader_HeaderDecoder_extractTilePartMarkSeg_" data-uid="CSJ2K.j2k.codestream.reader.HeaderDecoder.extractTilePartMarkSeg*"></a>
<h4 id="CSJ2K_j2k_codestream_reader_HeaderDecoder_extractTilePartMarkSeg_System_Int16_CSJ2K_j2k_io_RandomAccessIO_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.codestream.reader.HeaderDecoder.extractTilePartMarkSeg(System.Int16,CSJ2K.j2k.io.RandomAccessIO,System.Int32,System.Int32)">extractTilePartMarkSeg(short, RandomAccessIO, int, int)</h4>
<div class="markdown level1 summary"><p>This method extracts a marker segment in a tile-part header and stores
it into a byte buffer for the second pass. The marker is first
recognized, then its flag is activated and, finally, its content is
buffered in an element of byte arrays accessible thanks to a hashTable.
If a marker segment is not recognized, it prints a warning and skip it
according to its length.</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 extractTilePartMarkSeg(short marker, RandomAccessIO ehs, int tileIdx, int tilePartIdx)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub extractTilePartMarkSeg(marker As Short, ehs As RandomAccessIO, tileIdx As Integer, tilePartIdx 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.int16">short</a></td>
      <td><span class="parametername">marker</span></td>
      <td><p>The marker to process</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.io.RandomAccessIO.html">RandomAccessIO</a></td>
      <td><span class="parametername">ehs</span></td>
      <td><p>The encoded header stream</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">tileIdx</span></td>
      <td><p>The index of the current 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">tilePartIdx</span></td>
      <td><p>The index of the current tile part</p>
</td>
    </tr>
  </tbody>
</table>
</div>
