# CSJ2K.j2k.codestream.writer.BitOutputBuffer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_codestream_writer_BitOutputBuffer" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer" class="text-break">BitOutputBuffer Class
</h1>
  <div class="markdown level0 summary"></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">BitOutputBuffer</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.codestream.writer.html">CSJ2K.j2k.codestream.writer</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BitOutputBuffer</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BitOutputBuffer</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_writer_BitOutputBuffer__ctor" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.#ctor">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.-ctor.html#CSJ2K_j2k_codestream_writer_BitOutputBuffer__ctor">BitOutputBuffer()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new BitOutputBuffer width a buffer of length
'SZ_INIT'.</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_writer_BitOutputBuffer_SZ_INCR" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.SZ_INCR">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.SZ_INCR.html">SZ_INCR</a>
        </td>
        <td class="markdown level1 summary"><p>The increment size for the buffer, 16 bytes. This is the
number of bytes that are added to the buffer each time it is
needed to enlarge it.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_SZ_INIT" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.SZ_INIT">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.SZ_INIT.html">SZ_INIT</a>
        </td>
        <td class="markdown level1 summary"><p>The initial size for the buffer, 32 bytes.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</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_writer_BitOutputBuffer_Buffer" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.Buffer">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.Buffer.html#CSJ2K_j2k_codestream_writer_BitOutputBuffer_Buffer">Buffer</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_Length" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.Length">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.Length.html#CSJ2K_j2k_codestream_writer_BitOutputBuffer_Length">Length</a>
        </td>
        <td class="markdown level1 summary"></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_writer_BitOutputBuffer_ToString" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.ToString">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.ToString.html#CSJ2K_j2k_codestream_writer_BitOutputBuffer_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Prints information about this object for debugging purposes</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_reset" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.reset">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.reset.html#CSJ2K_j2k_codestream_writer_BitOutputBuffer_reset">reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the buffer. This rewinds the current position to the start of
the buffer and sets all tha data to 0. Note that no new buffer is
allocated, so this will affect any data that was returned by the
'getBuffer()' method.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_toByteArray_System_Byte___" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.toByteArray(System.Byte[])">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.toByteArray.html#CSJ2K_j2k_codestream_writer_BitOutputBuffer_toByteArray_System_Byte___">toByteArray(byte[])</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the byte buffer data in a new array. This is a copy of the
internal byte buffer. If 'data' is non-null it is used to return the
data. This array should be large enough to contain all the data,
otherwise a IndexOutOfBoundsException is thrown by the Java system. The
number of elements returned is what 'getLength()' returns.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_writeBit_System_Int32_" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.writeBit(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.writeBit.html#CSJ2K_j2k_codestream_writer_BitOutputBuffer_writeBit_System_Int32_">writeBit(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_writeBits_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.writeBits(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.codestream.writer.BitOutputBuffer.writeBits.html#CSJ2K_j2k_codestream_writer_BitOutputBuffer_writeBits_System_Int32_System_Int32_">writeBits(int, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
