# GrapeCity.Documents.Common.GcBinaryReader

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Common_GcBinaryReader" data-uid="GrapeCity.Documents.Common.GcBinaryReader" class="text-break">GcBinaryReader Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binaryreader">BinaryReader</a> with some additional functionality.</p>
</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binaryreader">BinaryReader</a></div>
    <div class="level2"><span class="xref">GcBinaryReader</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Common.html">GrapeCity.Documents.Common</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Common_GcBinaryReader_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GcBinaryReader : BinaryReader, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GcBinaryReader
    Inherits BinaryReader
    Implements IDisposable</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="GrapeCity_Documents_Common_GcBinaryReader__ctor_System_IO_Stream_System_Text_Encoding_System_Boolean_" data-uid="GrapeCity.Documents.Common.GcBinaryReader.#ctor(System.IO.Stream,System.Text.Encoding,System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Common.GcBinaryReader.-ctor.html#GrapeCity_Documents_Common_GcBinaryReader__ctor_System_IO_Stream_System_Text_Encoding_System_Boolean_">GcBinaryReader(Stream, Encoding, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Common.GcBinaryReader.html">GcBinaryReader</a> class.</p>
</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="GrapeCity_Documents_Common_GcBinaryReader_Read7BitEncodedInt" data-uid="GrapeCity.Documents.Common.GcBinaryReader.Read7BitEncodedInt">
          <a class="xref" href="GrapeCity.Documents.Common.GcBinaryReader.Read7BitEncodedInt.html#GrapeCity_Documents_Common_GcBinaryReader_Read7BitEncodedInt">Read7BitEncodedInt()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads 32 int in compressed form.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_GcBinaryReader_ReadEnum__1" data-uid="GrapeCity.Documents.Common.GcBinaryReader.ReadEnum``1">
          <a class="xref" href="GrapeCity.Documents.Common.GcBinaryReader.ReadEnum.html#GrapeCity_Documents_Common_GcBinaryReader_ReadEnum__1">ReadEnum&lt;T&gt;()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads enum value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_GcBinaryReader_ReadNullableEnum__1" data-uid="GrapeCity.Documents.Common.GcBinaryReader.ReadNullableEnum``1">
          <a class="xref" href="GrapeCity.Documents.Common.GcBinaryReader.ReadNullableEnum.html#GrapeCity_Documents_Common_GcBinaryReader_ReadNullableEnum__1">ReadNullableEnum&lt;T&gt;()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads nullable enum value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_GcBinaryReader_ReadNullableInt" data-uid="GrapeCity.Documents.Common.GcBinaryReader.ReadNullableInt">
          <a class="xref" href="GrapeCity.Documents.Common.GcBinaryReader.ReadNullableInt.html#GrapeCity_Documents_Common_GcBinaryReader_ReadNullableInt">ReadNullableInt()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads a nullable int value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_GcBinaryReader_ReadNullableString" data-uid="GrapeCity.Documents.Common.GcBinaryReader.ReadNullableString">
          <a class="xref" href="GrapeCity.Documents.Common.GcBinaryReader.ReadNullableString.html#GrapeCity_Documents_Common_GcBinaryReader_ReadNullableString">ReadNullableString()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads a string, written to the stream using the <a class="xref" href="GrapeCity.Documents.Common.GcBinaryWriter.WriteNullableString.html#GrapeCity_Documents_Common_GcBinaryWriter_WriteNullableString_System_String_">WriteNullableString(string)</a> method.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
