[]
The BinaryWriter with some additional functionality.
public class GcBinaryWriter : BinaryWriter, IDisposable, IAsyncDisposable
Public Class GcBinaryWriter
Inherits BinaryWriter
Implements IDisposable, IAsyncDisposable
Name | Description |
---|---|
GcBinaryWriter(Stream, Encoding, bool) | Initializes a new instance of the GcBinaryWriter class. |
Name | Description |
---|---|
Write7BitEncodedInt(int) | Writes 32 int in compressed form. |
WriteEnum<T>(T) | Writes enum value. |
WriteNullableEnum<T>(T?) | Writes nullable enum value. |
WriteNullableInt(int?) | Writes nullable 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. |