C# Class System.IO.BinaryReader

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

Public Methods

Method Description
BinaryReader ( Stream input ) : System.Text
BinaryReader ( Stream input, Encoding encoding ) : System.Text
BinaryReader ( Stream input, Encoding encoding, bool leaveOpen ) : System.Text
Close ( ) : void Override Dispose(bool) instead of Close(). This API exists for compatibility purposes.
Dispose ( ) : void
PeekChar ( ) : int
Read ( ) : int
Read ( byte buffer, int index, int count ) : int
Read ( char buffer, int index, int count ) : int
ReadBoolean ( ) : bool
ReadByte ( ) : byte
ReadBytes ( int count ) : byte[]
ReadChar ( ) : char
ReadChars ( int count ) : char[]
ReadDecimal ( ) : decimal
ReadDouble ( ) : double
ReadInt16 ( ) : short
ReadInt32 ( ) : int
ReadInt64 ( ) : long
ReadSingle ( ) : float
ReadString ( ) : string

Protected Methods

Method Description
Dispose ( bool disposing ) : void
FillBuffer ( int numBytes ) : void
Read7BitEncodedInt ( ) : int

Private Methods

Method Description
InternalReadChars ( char buffer, int index, int count ) : int
InternalReadOneChar ( ) : int
ReadSByte ( ) : sbyte
ReadUInt16 ( ) : ushort
ReadUInt32 ( ) : uint
ReadUInt64 ( ) : ulong

Method Details

BinaryReader() public method

public BinaryReader ( Stream input ) : System.Text
input Stream
return System.Text

BinaryReader() public method

public BinaryReader ( Stream input, Encoding encoding ) : System.Text
input Stream
encoding System.Text.Encoding
return System.Text

BinaryReader() public method

public BinaryReader ( Stream input, Encoding encoding, bool leaveOpen ) : System.Text
input 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

FillBuffer() protected method

protected FillBuffer ( int numBytes ) : void
numBytes int
return void

PeekChar() public method

public PeekChar ( ) : int
return int

Read() public method

public Read ( ) : int
return int

Read() public method

public Read ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

Read() public method

public Read ( char buffer, int index, int count ) : int
buffer char
index int
count int
return int

Read7BitEncodedInt() protected method

protected Read7BitEncodedInt ( ) : int
return int

ReadBoolean() public method

public ReadBoolean ( ) : bool
return bool

ReadByte() public method

public ReadByte ( ) : byte
return byte

ReadBytes() public method

public ReadBytes ( int count ) : byte[]
count int
return byte[]

ReadChar() public method

public ReadChar ( ) : char
return char

ReadChars() public method

public ReadChars ( int count ) : char[]
count int
return char[]

ReadDecimal() public method

public ReadDecimal ( ) : decimal
return decimal

ReadDouble() public method

public ReadDouble ( ) : double
return double

ReadInt16() public method

public ReadInt16 ( ) : short
return short

ReadInt32() public method

public ReadInt32 ( ) : int
return int

ReadInt64() public method

public ReadInt64 ( ) : long
return long

ReadSingle() public method

public ReadSingle ( ) : float
return float

ReadString() public method

public ReadString ( ) : string
return string