C# Class System.IO.BinaryWriter

Inheritance: IDisposable
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
Null BinaryWriter

Protected Properties

Property Type Description
OutStream Stream

Public Methods

Method Description
BinaryWriter ( Stream output ) : System.Text
BinaryWriter ( Stream output, Encoding encoding ) : System.Text
BinaryWriter ( Stream output, Encoding encoding, bool leaveOpen ) : System.Text
Close ( ) : void Override Dispose(bool) instead of Close(). This API exists for compatibility purposes.
Dispose ( ) : void
Flush ( ) : void
Seek ( int offset, SeekOrigin origin ) : long
Write ( bool value ) : void
Write ( byte value ) : void
Write ( byte buffer, int index, int count ) : void
Write ( char ch ) : void
Write ( char chars, int index, int count ) : void
Write ( decimal value ) : void
Write ( double value ) : void
Write ( float value ) : void
Write ( int value ) : void
Write ( long value ) : void
Write ( short value ) : void
Write ( string value ) : void

Protected Methods

Method Description
BinaryWriter ( ) : System.Text
Dispose ( bool disposing ) : void
Write7BitEncodedInt ( int value ) : void

Private Methods

Method Description
Write ( sbyte value ) : void
Write ( uint value ) : void
Write ( ulong value ) : void
Write ( ushort value ) : void

Method Details

BinaryWriter() protected method

protected BinaryWriter ( ) : System.Text
return System.Text

BinaryWriter() public method

public BinaryWriter ( Stream output ) : System.Text
output Stream
return System.Text

BinaryWriter() public method

public BinaryWriter ( Stream output, Encoding encoding ) : System.Text
output Stream
encoding System.Text.Encoding
return System.Text

BinaryWriter() public method

public BinaryWriter ( Stream output, Encoding encoding, bool leaveOpen ) : System.Text
output Stream
encoding System.Text.Encoding
leaveOpen bool
return System.Text

Close() public method

Override Dispose(bool) instead of Close(). This API exists for compatibility purposes.
public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

Seek() public method

public Seek ( int offset, SeekOrigin origin ) : long
offset int
origin SeekOrigin
return long

Write() public method

public Write ( bool value ) : void
value bool
return void

Write() public method

public Write ( byte value ) : void
value byte
return void

Write() public method

public Write ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
return void

Write() public method

public Write ( char ch ) : void
ch char
return void

Write() public method

public Write ( char chars, int index, int count ) : void
chars char
index int
count int
return void

Write() public method

public Write ( decimal value ) : void
value decimal
return void

Write() public method

public Write ( double value ) : void
value double
return void

Write() public method

public Write ( float value ) : void
value float
return void

Write() public method

public Write ( int value ) : void
value int
return void

Write() public method

public Write ( long value ) : void
value long
return void

Write() public method

public Write ( short value ) : void
value short
return void

Write() public method

public Write ( string value ) : void
value string
return void

Write7BitEncodedInt() protected method

protected Write7BitEncodedInt ( int value ) : void
value int
return void

Property Details

Null public_oe static_oe property

public static BinaryWriter,System.IO Null
return BinaryWriter

OutStream protected_oe property

protected Stream,System.IO OutStream
return Stream