[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.GcBinaryWriter

Class GcBinaryWriter

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

The System.IO.BinaryWriter with some additional functionality.

public class GcBinaryWriter : BinaryWriter, IDisposable
Inheritance
object
System.IO.BinaryWriter
GcBinaryWriter
Implements
System.IDisposable
Inherited Members
System.IO.BinaryWriter.Null
System.IO.BinaryWriter.OutStream
System.IO.BinaryWriter.Close()
System.IO.BinaryWriter.Dispose(bool)
System.IO.BinaryWriter.Dispose()
System.IO.BinaryWriter.Flush()
System.IO.BinaryWriter.Seek(int, System.IO.SeekOrigin)
System.IO.BinaryWriter.Write(bool)
System.IO.BinaryWriter.Write(byte)
System.IO.BinaryWriter.Write(sbyte)
System.IO.BinaryWriter.Write(byte[])
System.IO.BinaryWriter.Write(byte[], int, int)
System.IO.BinaryWriter.Write(char)
System.IO.BinaryWriter.Write(char[])
System.IO.BinaryWriter.Write(char[], int, int)
System.IO.BinaryWriter.Write(double)
System.IO.BinaryWriter.Write(decimal)
System.IO.BinaryWriter.Write(short)
System.IO.BinaryWriter.Write(ushort)
System.IO.BinaryWriter.Write(int)
System.IO.BinaryWriter.Write(uint)
System.IO.BinaryWriter.Write(long)
System.IO.BinaryWriter.Write(ulong)
System.IO.BinaryWriter.Write(float)
System.IO.BinaryWriter.Write(string)
System.IO.BinaryWriter.BaseStream
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

GcBinaryWriter(Stream, Encoding, bool)

Initializes a new instance of the GcBinaryWriter class.

public GcBinaryWriter(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 GcBinaryWriter object is disposed; otherwise, false.

Methods

Write7BitEncodedInt(int)

Writes 32 int in compressed form.

public void Write7BitEncodedInt(int value)

Parameters

value int

WriteEnum<T>(T)

Writes enum value.

public void WriteEnum<T>(T value) where T : struct

Parameters

value T

Type Parameters

T

WriteNullableEnum<T>(T?)

Writes nullable enum value.

public void WriteNullableEnum<T>(T? value) where T : struct

Parameters

value T?

Type Parameters

T

WriteNullableInt(int?)

Writes nullable int.

public void WriteNullableInt(int? value)

Parameters

value int?

WriteNullableString(string)

Writes a length-prefixed string to this stream in the current encoding of the BinaryWriter, and advances the current position of the stream in accordance with the encoding used and the specific characters being written to the stream. -1 is used to indicate null string.

public void WriteNullableString(string value)

Parameters

value string