# CSJ2K.j2k.codestream.writer.PktEncoder.LastBodyBuf

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_writer_PktEncoder_LastBodyBuf_" data-uid="CSJ2K.j2k.codestream.writer.PktEncoder.LastBodyBuf*">LastBodyBuf Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_writer_PktEncoder_LastBodyBuf_" data-uid="CSJ2K.j2k.codestream.writer.PktEncoder.LastBodyBuf*"></a>
<h4 id="CSJ2K_j2k_codestream_writer_PktEncoder_LastBodyBuf" data-uid="CSJ2K.j2k.codestream.writer.PktEncoder.LastBodyBuf">LastBodyBuf</h4>
<div class="markdown level1 summary"><p>Returns the buffer of the body of the last encoded packet. The length
of the body can be retrieved with the getLastBodyLen() method. The
length of the array returned by this method may be larger than the
actual body 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 byte[] LastBodyBuf { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable ReadOnly Property LastBodyBuf As Byte()</code></pre>
</div>
<h5 class="propertyValue">Property Value</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="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><p>The buffer of body of the last encoded packet.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
