C# Class Keyczar.Util.NondestructiveBinaryReader

Reader that won't close the stream when disposed
Inheritance: System.IO.BinaryReader
Mostrar archivo Open project: jbtule/keyczar-dotnet Class Usage Examples

Public Methods

Method Description
NondestructiveBinaryReader ( Stream input ) : System

Initializes a new instance of the NondestructiveBinaryReader class.

NondestructiveBinaryReader ( Stream input, Encoding encoding ) : System

Initializes a new instance of the NondestructiveBinaryReader class.

Peek ( ) : int

Peeks this positions byte.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.IO.BinaryReader class and optionally releases the managed resources.

Method Details

Dispose() protected method

Releases the unmanaged resources used by the T:System.IO.BinaryReader class and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

NondestructiveBinaryReader() public method

Initializes a new instance of the NondestructiveBinaryReader class.
public NondestructiveBinaryReader ( Stream input ) : System
input Stream The input.
return System

NondestructiveBinaryReader() public method

Initializes a new instance of the NondestructiveBinaryReader class.
The stream does not support reading, the stream is null, or the stream is already closed. /// is null.
public NondestructiveBinaryReader ( Stream input, Encoding encoding ) : System
input Stream The supplied stream.
encoding System.Text.Encoding The character encoding.
return System

Peek() public method

Peeks this positions byte.
public Peek ( ) : int
return int