# C1.Zip.C1ZStreamReader.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Zip_C1ZStreamReader__ctor_" data-uid="C1.Zip.C1ZStreamReader.#ctor*">C1ZStreamReader Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Zip_C1ZStreamReader__ctor_" data-uid="C1.Zip.C1ZStreamReader.#ctor*"></a>
<h4 id="C1_Zip_C1ZStreamReader__ctor_System_IO_Stream_" data-uid="C1.Zip.C1ZStreamReader.#ctor(System.IO.Stream)">C1ZStreamReader(Stream)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Zip.C1ZStreamReader.html">C1ZStreamReader</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1ZStreamReader(Stream baseStream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(baseStream As Stream)</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.io.stream">Stream</a></td>
      <td><span class="parametername">baseStream</span></td>
      <td><p>Input stream that contains the compressed data.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Zip_C1ZStreamReader__ctor_" data-uid="C1.Zip.C1ZStreamReader.#ctor*"></a>
<h4 id="C1_Zip_C1ZStreamReader__ctor_System_IO_Stream_System_Boolean_System_Int32_" data-uid="C1.Zip.C1ZStreamReader.#ctor(System.IO.Stream,System.Boolean,System.Int32)">C1ZStreamReader(Stream, bool, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Zip.C1ZStreamReader.html">C1ZStreamReader</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1ZStreamReader(Stream baseStream, bool zip, int sizeCompressed)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(baseStream As Stream, zip As Boolean, sizeCompressed 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.io.stream">Stream</a></td>
      <td><span class="parametername">baseStream</span></td>
      <td><p>Input stream that contains the compressed data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">zip</span></td>
      <td><p>Specifies whether the compressed stream was created in zip format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">sizeCompressed</span></td>
      <td><p>Specifies the number of compressed bytes to read from the stream.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Zip_C1ZStreamReader__ctor_System_IO_Stream_System_Boolean_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code class="paramref">sizeCompressed</code> parameter is needed only when a single stream contains
several compressed streams (in zip files for example). If this parameter is not
specified, it is assumed that the stream contains a single stream of compressed data.</p>
</div>


<a id="C1_Zip_C1ZStreamReader__ctor_" data-uid="C1.Zip.C1ZStreamReader.#ctor*"></a>
<h4 id="C1_Zip_C1ZStreamReader__ctor_System_IO_Stream_System_Boolean_" data-uid="C1.Zip.C1ZStreamReader.#ctor(System.IO.Stream,System.Boolean)">C1ZStreamReader(Stream, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Zip.C1ZStreamReader.html">C1ZStreamReader</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1ZStreamReader(Stream baseStream, bool zip)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(baseStream As Stream, zip As Boolean)</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.io.stream">Stream</a></td>
      <td><span class="parametername">baseStream</span></td>
      <td><p>Input stream that contains the compressed data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">zip</span></td>
      <td><p>Specifies whether the compressed stream was created in zip format.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Zip_C1ZStreamReader__ctor_" data-uid="C1.Zip.C1ZStreamReader.#ctor*"></a>
<h4 id="C1_Zip_C1ZStreamReader__ctor_System_IO_Stream_System_Boolean_System_Boolean_" data-uid="C1.Zip.C1ZStreamReader.#ctor(System.IO.Stream,System.Boolean,System.Boolean)">C1ZStreamReader(Stream, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Zip.C1ZStreamReader.html">C1ZStreamReader</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1ZStreamReader(Stream baseStream, bool header, bool crc32)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(baseStream As Stream, header As Boolean, crc32 As Boolean)</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.io.stream">Stream</a></td>
      <td><span class="parametername">baseStream</span></td>
      <td><p>Input stream that contains the compressed data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">header</span></td>
      <td><p>Specifies whether the compressed stream contains header information (should be False for streams in zip files).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">crc32</span></td>
      <td><p>Specifies whether the compressed stream contains a CRC32 checksum (should be True for streams in zip files).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Zip_C1ZStreamReader__ctor_" data-uid="C1.Zip.C1ZStreamReader.#ctor*"></a>
<h4 id="C1_Zip_C1ZStreamReader__ctor_System_IO_Stream_System_Boolean_System_Int32_System_Int32_" data-uid="C1.Zip.C1ZStreamReader.#ctor(System.IO.Stream,System.Boolean,System.Int32,System.Int32)">C1ZStreamReader(Stream, bool, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Zip.C1ZStreamReader.html">C1ZStreamReader</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1ZStreamReader(Stream baseStream, bool zip, int sizeCompressed, int method)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(baseStream As Stream, zip As Boolean, sizeCompressed As Integer, method 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.io.stream">Stream</a></td>
      <td><span class="parametername">baseStream</span></td>
      <td><p>Input stream that contains the compressed data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">zip</span></td>
      <td><p>Specifies whether the compressed stream was created in zip format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">sizeCompressed</span></td>
      <td><p>Specifies the number of compressed bytes to read from the stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">method</span></td>
      <td><p>Specifies the method that was used to compress the stream.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Zip_C1ZStreamReader__ctor_" data-uid="C1.Zip.C1ZStreamReader.#ctor*"></a>
<h4 id="C1_Zip_C1ZStreamReader__ctor_System_IO_Stream_System_Boolean_System_Int64_System_Int32_" data-uid="C1.Zip.C1ZStreamReader.#ctor(System.IO.Stream,System.Boolean,System.Int64,System.Int32)">C1ZStreamReader(Stream, bool, long, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Zip.C1ZStreamReader.html">C1ZStreamReader</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1ZStreamReader(Stream baseStream, bool zip, long sizeCompressed, int method)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(baseStream As Stream, zip As Boolean, sizeCompressed As Long, method 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.io.stream">Stream</a></td>
      <td><span class="parametername">baseStream</span></td>
      <td><p>Input stream that contains the compressed data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">zip</span></td>
      <td><p>Specifies whether the compressed stream was created in zip format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></td>
      <td><span class="parametername">sizeCompressed</span></td>
      <td><p>Specifies the number of compressed bytes to read from the stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">method</span></td>
      <td><p>Specifies the method that was used to compress the stream.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
