[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.GcBinaryReader

Class GcBinaryReader

Namespace
GrapeCity.Documents.Common
Assembly
GcDocs.Imaging.dll

The System.IO.BinaryReader with some additional functionality.

public class GcBinaryReader : BinaryReader, IDisposable
Inheritance
object
System.IO.BinaryReader
GcBinaryReader
Implements
System.IDisposable
Inherited Members
System.IO.BinaryReader.Close()
System.IO.BinaryReader.Dispose(bool)
System.IO.BinaryReader.Dispose()
System.IO.BinaryReader.PeekChar()
System.IO.BinaryReader.Read()
System.IO.BinaryReader.ReadBoolean()
System.IO.BinaryReader.ReadByte()
System.IO.BinaryReader.ReadSByte()
System.IO.BinaryReader.ReadChar()
System.IO.BinaryReader.ReadInt16()
System.IO.BinaryReader.ReadUInt16()
System.IO.BinaryReader.ReadInt32()
System.IO.BinaryReader.ReadUInt32()
System.IO.BinaryReader.ReadInt64()
System.IO.BinaryReader.ReadUInt64()
System.IO.BinaryReader.ReadSingle()
System.IO.BinaryReader.ReadDouble()
System.IO.BinaryReader.ReadDecimal()
System.IO.BinaryReader.ReadString()
System.IO.BinaryReader.Read(char[], int, int)
System.IO.BinaryReader.ReadChars(int)
System.IO.BinaryReader.Read(byte[], int, int)
System.IO.BinaryReader.ReadBytes(int)
System.IO.BinaryReader.FillBuffer(int)
System.IO.BinaryReader.BaseStream
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

GcBinaryReader(Stream, Encoding, bool)

Initializes a new instance of the GcBinaryReader class.

public GcBinaryReader(Stream baseStream, Encoding encoding, bool leaveOpen)

Parameters

baseStream System.IO.Stream

The underlying System.IO.Stream object.

encoding System.Text.Encoding

The encoding used for strings.

leaveOpen bool

true to leave the stream open after the GcBinaryReader object is disposed; otherwise, false.

Methods

Read7BitEncodedInt()

Reads 32 int in compressed form.

public int Read7BitEncodedInt()

Returns

int

ReadEnum<T>()

Reads enum value.

public T ReadEnum<T>() where T : struct

Returns

T

Type Parameters

T

ReadNullableEnum<T>()

Reads nullable enum value.

public T? ReadNullableEnum<T>() where T : struct

Returns

T?

Type Parameters

T

ReadNullableInt()

Reads a nullable int value.

public int? ReadNullableInt()

Returns

int?

ReadNullableString()

Reads a string, written to the stream using the WriteNullableString(string) method.

public string ReadNullableString()

Returns

string