# CSJ2K.j2k.codestream.reader.PktInfo

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_codestream_reader_PktInfo" data-uid="CSJ2K.j2k.codestream.reader.PktInfo" class="text-break">PktInfo Class
</h1>
  <div class="markdown level0 summary"><p>This class defines an object used to countain informations about a packet
to which the current code-block belongs.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">PktInfo</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.codestream.reader.html">CSJ2K.j2k.codestream.reader</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_codestream_reader_PktInfo_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PktInfo</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PktInfo</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_PktInfo__ctor_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.codestream.reader.PktInfo.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.PktInfo.-ctor.html#CSJ2K_j2k_codestream_reader_PktInfo__ctor_System_Int32_System_Int32_">PktInfo(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Classe's constructor.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_PktInfo_cbLength" data-uid="CSJ2K.j2k.codestream.reader.PktInfo.cbLength">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.PktInfo.cbLength.html">cbLength</a>
        </td>
        <td class="markdown level1 summary"><p>The length of the code-block in this packet (in bytes)</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_PktInfo_cbOff" data-uid="CSJ2K.j2k.codestream.reader.PktInfo.cbOff">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.PktInfo.cbOff.html">cbOff</a>
        </td>
        <td class="markdown level1 summary"><p>The code-block offset in the codestream (for this packet)</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_PktInfo_layerIdx" data-uid="CSJ2K.j2k.codestream.reader.PktInfo.layerIdx">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.PktInfo.layerIdx.html">layerIdx</a>
        </td>
        <td class="markdown level1 summary"><p>The layer associated with the current code-block in this packet.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_PktInfo_numTruncPnts" data-uid="CSJ2K.j2k.codestream.reader.PktInfo.numTruncPnts">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.PktInfo.numTruncPnts.html">numTruncPnts</a>
        </td>
        <td class="markdown level1 summary"><p>The number of truncation points that appear in this packet, and all
previous packets, for this code-block. This is the number of passes
that can be decoded with the information in this packet and all
previous ones.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_PktInfo_packetIdx" data-uid="CSJ2K.j2k.codestream.reader.PktInfo.packetIdx">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.PktInfo.packetIdx.html">packetIdx</a>
        </td>
        <td class="markdown level1 summary"><p>Index of the packet</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_PktInfo_segLengths" data-uid="CSJ2K.j2k.codestream.reader.PktInfo.segLengths">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.PktInfo.segLengths.html">segLengths</a>
        </td>
        <td class="markdown level1 summary"><p>The length of each terminated segment in the packet. The total is the
same as 'cbLength'. It can be null if there is only one terminated
segment, in which case 'cbLength' holds the legth of that segment</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_codestream_reader_PktInfo_ToString" data-uid="CSJ2K.j2k.codestream.reader.PktInfo.ToString">
          <a class="xref" href="CSJ2K.j2k.codestream.reader.PktInfo.ToString.html#CSJ2K_j2k_codestream_reader_PktInfo_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Object information in a string.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="CSJ2K.j2k.codestream.reader.CBlkInfo.html">CBlkInfo</a></div>
  </div>

</div>
