# CSJ2K.j2k.codestream.writer.BitOutputBuffer.reset

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_reset_" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.reset*">reset Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_reset_" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.reset*"></a>
<h4 id="CSJ2K_j2k_codestream_writer_BitOutputBuffer_reset" data-uid="CSJ2K.j2k.codestream.writer.BitOutputBuffer.reset">reset()</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void reset()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub reset()</code></pre>
</div>
</div>
