# CSJ2K.j2k.codestream.writer.FileCodestreamWriter.writePacketHead

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_writer_FileCodestreamWriter_writePacketHead_" data-uid="CSJ2K.j2k.codestream.writer.FileCodestreamWriter.writePacketHead*">writePacketHead Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_writer_FileCodestreamWriter_writePacketHead_" data-uid="CSJ2K.j2k.codestream.writer.FileCodestreamWriter.writePacketHead*"></a>
<h4 id="CSJ2K_j2k_codestream_writer_FileCodestreamWriter_writePacketHead_System_Byte___System_Int32_System_Boolean_System_Boolean_System_Boolean_" data-uid="CSJ2K.j2k.codestream.writer.FileCodestreamWriter.writePacketHead(System.Byte[],System.Int32,System.Boolean,System.Boolean,System.Boolean)">writePacketHead(byte[], int, bool, bool, bool)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override int writePacketHead(byte[] head, int hlen, bool sim, bool sop, bool eph)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function writePacketHead(head As Byte(), hlen As Integer, sim As Boolean, sop As Boolean, eph As Boolean) 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">head</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">hlen</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">sim</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">sop</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">eph</span></td>
      <td></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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="CSJ2K.j2k.codestream.writer.CodestreamWriter.writePacketHead.html#CSJ2K_j2k_codestream_writer_CodestreamWriter_writePacketHead_System_Byte___System_Int32_System_Boolean_System_Boolean_System_Boolean_">CodestreamWriter.writePacketHead(byte[], int, bool, bool, bool)</a></div>
</div>
