[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.GcBinaryReader

Class GcBinaryReader

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

The BinaryReader with some additional functionality.

public class GcBinaryReader : BinaryReader, IDisposable
Inheritance
GcBinaryReader
Implements
Inherited Members

Constructors

GcBinaryReader(Stream, Encoding, bool)

Initializes a new instance of the GcBinaryReader class.

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

Parameters

baseStream Stream

The underlying Stream object.

encoding 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