C# Class NanoByte.Common.Streams.DisposeWarpperStream

This wrapper stream passes all operations through to an underlying Stream without modifying them. An additional delegate is executed before Stream.Dispose() is passed through.
Inheritance: Stream
Afficher le fichier Open project: nano-byte/common

Méthodes publiques

Méthode Description
DisposeWarpperStream ( [ baseStream, [ disposeHandler ) : System

Creates a new dispose wrapper stream.

Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DisposeWarpperStream() public méthode

Creates a new dispose wrapper stream.
public DisposeWarpperStream ( [ baseStream, [ disposeHandler ) : System
baseStream [ The underlying providing the actual data. Will be disposed.
disposeHandler [ Executed before is disposed.
Résultat System

Flush() public méthode

public Flush ( ) : void
Résultat void

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void